Hello Monks,
I am logging alerts with Snort and making output files of them. I am wondering if there was a way for Perl to read that data continuously so I would never have to turn off Snort and have it keep logging to one file. I know there is a File::Tail but I do not think this works for binary, only for ascii.
Either Perl could parse as new alerts are writing to the output file or another option is rolling over the files every time Snort realizes there are x MB of data in them. Then Perl can parse a file xxx.log and change it to xxy.log, while there are files that are not xxy.log, then parse them.
Which option do you think is the most feasible?