Skip to content

Commit

Permalink
Merge pull request #1443 from ddpbsd/1433_dpkg
Browse files Browse the repository at this point in the history
Fix dpkg grouping rule.
  • Loading branch information
atomicturtle authored Jun 26, 2018
2 parents 43c7eaa + 1cceca4 commit bec2a51
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions contrib/ossec-testing/tests/dpkg.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[dpkg log]
log 1 pass = 2018-05-31 12:09:56 upgrade vlc-plugin-visualization:amd64 3.0.2-1+b1 3.0.3-1
log 2 pass = 2018-05-11 09:41:49 conffile /etc/redis/redis.conf keep

rule = 2900
alert = 0
decoder = windows-date-format

10 changes: 9 additions & 1 deletion etc/rules/syslog_rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,15 @@
<group name="syslog,dpkg,">
<rule id="2900" level="0">
<decoded_as>windows-date-format</decoded_as>
<regex offset="after_parent">^startup |^status |^remove |^configure |^install |^purge |^trigproc </regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d startup |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d status |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d remove |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d configure |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d install |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d purge |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d trigproc |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d conffile |</regex>
<regex>^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d upgrade </regex>
<description>Dpkg (Debian Package) log.</description>
</rule>

Expand Down

0 comments on commit bec2a51

Please sign in to comment.