-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suricata eve alert payload logging #228
Changes from all commits
4b460b8
4b71aec
32b5d63
010b7a8
a4604f2
3d54f2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,8 +338,19 @@ | |
|
||
// EVE log output included information | ||
$eve_out_types = ""; | ||
if ($suricatacfg['eve_log_alerts'] == 'on') | ||
if (($suricatacfg['eve_log_alerts'] == 'on') && ($suricatacfg['eve_log_alerts_payload'] == 'off')) | ||
$eve_out_types .= "\n - alert"; | ||
|
||
if (($suricatacfg['eve_log_alerts'] == 'on') && ($suricatacfg['eve_log_alerts_payload'] == 'on')) { | ||
$eve_out_types .= "\n - alert:"; | ||
$eve_out_types .= "\n payload: yes # enable dumping payload in Base64"; | ||
$eve_out_types .= "\n payload-printable: yes # enable dumping payload in printable (lossy) format"; | ||
$eve_out_types .= "\n packet: yes # enable dumping of packet (without stream segments)"; | ||
$eve_out_types .= "\n http: yes # enable dumping of http fields"; | ||
$eve_out_types .= "\n tls: yes # enable dumping of tls fields"; | ||
$eve_out_types .= "\n ssh: yes # enable dumping of ssh fields"; | ||
$eve_out_types .= "\n smtp: yes # enable dumping of smtp fields"; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix indent There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. } should be in the begin of the line There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Almost there. ssh and smtp lines are still indented with spaces and } should be at line begin |
||
|
||
if ($suricatacfg['eve_log_http'] == 'on') { | ||
$eve_out_types .= "\n - http:"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use TAB to indent 2 lines above