Sofar everyone here has been really helpful, and has helped me complete 2 projects which I greatly appreciate. My question is this one:
Snort, the opensource IDS, can only output it's results to a file from my experience. Assuming what I just said is 100% true, this is my question: How would I go about constructin a perl script that reads from that file and only returns the changes from it? IE: the script would read it once, and then the next time it reads it the script returns only the differences (changes) to the logfile.
Sofar, what I have seen is seek() and I tell it to read from the EOF and backwards... But if that is the method, how does one get it to detect "Oh, I know that part... I read it from the last time i did analysis of this file."?
Any help is greatly appreciated.
russ
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.