in reply to read from network security log file and display lines as alert boxes

You might want to have a look at File::Tail. By tailing the file, you won't have to keep track of the last line read or worry about repeating alerts. You also won't have to run your script every 30 seconds, you can just have it run continuously, and your alerts will show up in real time.
  • Comment on Re: read from network security log file and display lines as alert boxes