IDS/IPS ✓ fields verified against sample logs

Snort alert_fast Log Format: GID:SID:REV, Classification, Priority

Published

One line per alert in Snort's alert_fast output: when it fired, which rule (generator, signature ID and revision), the rule's message, its classification and priority, the protocol, and the source and destination addresses and ports.

Official documentation: Snort 3: Alert logging (alert_fast and other loggers) · Snort 3: Rule options — classtype and priority

Sample record

01/15-09:00:01.100000  [**] [1:2013504:3] ET POLICY GNU/Linux APT User-Agent Outbound likely related to package management [**] [Classification: Not Suspicious Traffic] [Priority: 3] {TCP} 10.0.0.50:52100 -> 198.51.100.20:80

From the LogTriage parser test corpus — synthetic data, no real hosts or users.

Explain this record field by field →

Field reference

Field Type Meaning Why it matters for security
timee.g. 01/15-14:33:00.000000 MM/DD-HH:MM:SS.ffffff When the packet that triggered the alert was seen — month/day and time to the microsecond, with no year and in the sensor's local time unless Snort runs in UTC mode (-U in Snort 2, -U / --utc in Snort 3). Add the year and zone yourself before correlating; logs that span New Year are easy to misorder.
gid:sid:reve.g. 1:2024218:3 string The rule that fired: generator ID (1 for text rules, others for built-in preprocessors and inspectors), signature ID and revision. Look up the SID in your rule set to read what it matches; SIDs 2000000-2999999 are Emerging Threats rules, 1-999999 Snort/Talos rules, 1000000+ local rules.
msge.g. ET EXPLOIT Possible ETERNALBLUE MS17-010 Echo Response string The rule's msg option. Snort 3 prints it in quotes. The category word (ET SCAN, ET EXPLOIT, ET TROJAN, ET POLICY, ET INFO) is a first triage cut.
classificatione.g. A Network Trojan was Detected string The description of the rule's classtype from classification.config, such as Attempted Information Leak (attempted-recon) or Web Application Attack (web-application-attack). Groups alerts by kind across thousands of rules.
prioritye.g. 1 number The classtype's default priority unless the rule overrides it: 1 is the most urgent, 3 the least. Start with priority 1 — trojan activity, successful privilege gain, web application attacks.
protocole.g. TCP string The packet's protocol in braces: TCP, UDP, ICMP or IP. Together with the ports, tells you which service was targeted.
source addresse.g. 185.220.101.42 IP address The packet's source address. For a rule that matches a response, it is your server. Read the rule's direction — in the echo-response alert the source is the vulnerable host, not the attacker.
source porte.g. 4444 number The packet's source port. Well-known tool ports (4444 for Metasploit) on the remote side are a signal on their own.
destination addresse.g. 45.142.212.100 IP address The packet's destination address. An internal host sending to an external address in a TROJAN alert is a compromised host calling out.
destination porte.g. 3389 number The packet's destination port. 22, 3389 and 445 from the internet are scanning and exploitation of remote access and file sharing.

Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.

What it records

Snort’s alert_fast logger writes one line per alert, as described in Snort’s alert logging documentation: the time, the rule’s [gid:sid:rev], its message between [**] markers, the classification and priority from the rule’s classtype, the protocol in braces, and the source and destination address:port. Snort 3 puts the message in quotes; Snort 2 does not. The full packet is not included — alert_full, unified2 or a pcap logger keep packet details.

An alert says that traffic matched a rule, not that an attack worked. Read three things together: the rule (what it matches and in which direction), the priority, and whether the same endpoints keep appearing — a scan alert from an address that later shows up in an exploit alert is a story; one scan alert is background noise on any internet-facing network.

The malicious sample has one outside address scanning SSH and RDP, sending UNION SELECT injections and Nmap NSE requests to a web server, then the EternalBlue echo-response rule firing on that server’s reply, followed by the same server sending Cobalt Strike beacon traffic to a second address and receiving Meterpreter commands from it on port 4444.

Where to get it

  • Snort 3. snort -c snort.lua -i eth0 -A alert_fast -l /var/log/snort with alert_fast = { file = true } writes alert_fast.txt.
  • Snort 2. output alert_fast: alert in snort.conf writes /var/log/snort/alert; -A fast on the command line does the same.
  • Appliances. pfSense and OPNsense Snort packages, and Security Onion, show the same fields and can export them.
  • Rule sets. The message and classification come from your rules (Talos, Emerging Threats, local); keep the rule files that match the log.
# Priority 1 alerts, grouped by rule and source
grep 'Priority: 1' alert_fast.txt | sed -E 's/.*\[([0-9]+:[0-9]+:[0-9]+)\] (.*) \[\*\*\].*\{[A-Z]+\} ([^:]+):.*/\1 \3 \2/' | sort | uniq -c | sort -rn | head

Parsing pitfalls

  • No year, no zone. Add both from the file date and the sensor’s configuration.
  • Quotes differ. Snort 3 quotes the message; Snort 2 does not.
  • Optional parts. Rules without a classtype have no [Classification: …]; the priority is still printed.
  • IPv6. Addresses with colons make address:port ambiguous — split on the last colon.
  • No packet data. The line holds only the rule and endpoints; payloads need alert_full or a pcap.
  • Message text is not unique. Several SIDs share similar messages; group by SID.

Detection ideas

  • Same source, many rules: an address moving from SCAN to WEB_SERVER to EXPLOIT alerts within minutes.
  • Outbound TROJAN alerts: an internal source and a TROJAN or command-and-control rule — a host that needs isolating, whatever the inbound alerts say.
  • Responses that confirm: rules matching responses (echo responses, command output) show the attack reached something.
  • Priority 1 from internal hosts: lateral movement and successful privilege gain.
  • Rule noise: high-volume priority 3 POLICY/INFO alerts are tuning candidates, not incidents.

The free browser analyzer reads Snort fast alerts and runs these checks locally.

Sending Snort to an LLM

One megabyte of this format is about 547,838 tokens on current Claude models and 409,639 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $1,096 in input tokens alone (prices of 2026-10-24). Estimate your own volume →

Frequently Asked Questions

What do the three numbers in a Snort alert mean?
They are generator ID, signature ID and revision. Generator 1 is the rule engine (text rules); other generators are Snort's built-in decoders, preprocessors and inspectors. The SID identifies the rule and the revision its version, so 1:2024218:3 is revision 3 of Emerging Threats rule 2024218.
What is the difference between classification and priority in Snort?
Each rule has a classtype; classification.config maps it to a description (shown as Classification) and a default priority. Priority 1 is the most severe and 3 the least, and a rule can override the default with its own priority option. Emerging Threats ships its own classification.config with the same scale.
Why does a Snort alert show my server as the source?
Rules can match traffic in either direction. A rule that recognises a vulnerable or compromised response — the EternalBlue echo response, an id command output, a beacon — fires on packets your host sends, so the source is your host and the destination is the attacker. Read the rule header before deciding who attacked whom.
How do I enable alert_fast in Snort 3?
Run snort with -A alert_fast to print alerts to the console, or configure alert_fast = { file = true } in snort.lua to write alert_fast.txt in the log directory (-l). Snort 2 writes the same layout to the alert file with output alert_fast in snort.conf.

Analyze a Snort file in your browser

The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing

How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]