Skip to content
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

Override level of apache error log in ossec config #4340

Merged
merged 1 commit into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,10 @@
</rule>
</group>

<group name="Apache logs">
<rule id="400700" level="7">
<if_sid>30301</if_sid>
<description>Apache application error.</description>
</rule>
</group>

15 changes: 15 additions & 0 deletions molecule/testinfra/staging/vars/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,20 @@ log_events_with_ossec_alerts:
level: "1"
rule_id: "400503"

- name: test_ossec_server_apache_error_log_alert
alert: >
[Fri Apr 12 14:39:25.596318 2019] [wsgi:error]
[pid 1480:tid 4201987876608] ERROR:flask.app:Login for 'user' failed:
invalid username 'user'
level: "7"
rule_id: "400700"

- name: test_ossec_server_test_notification_alert
alert: >
[Fri Apr 12 15:45:05.310796 2019] [wsgi:error]
[pid 1479:tid 4201988093696] ERROR:flask.app:This is a test OSSEC alert
level: "7"
rule_id: "400700"

fpf_apt_repo_url: "https://apt-test.freedom.press"
grsec_version: "4.4.177"