A Simple Snort Alert Parser

Written By
Web Webster
Web Webster
Sep 27, 2010

[ Thanks to J Fink
for this link. ]

“Snort Intrusion Detection Software (IDS) is a great
out of the box easy to use system to monitor a network for possible
threats. While there are many ways to receive alerts, one very
simple approach is to periodically parse the alert log and simply
mail alerts to whom it may concern. In this text a simple example
of parsing a snort alert log using Perl. Note this alerter could
probably be used for other loggers and there exist other tools
available like Splunk which might be more suited for larger
installations. The thesis of this text is to show how a relatively
useful utility can be quickly hacked together to provide an elegant
solution.

“Since this text has the time to think logically (the author
didn’t) here is some pseudo code that expresses the idea of how
this particular parser will work. For the time being the script is
interested in priority 1 and priority 2 alerts:”

Advertisement

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.