Skip to content

Commit

Permalink
Merge branch 'splunk-james-develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Bareiss committed Dec 9, 2024
2 parents dffedb2 + d6ad960 commit 52770c1
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 6 deletions.
6 changes: 3 additions & 3 deletions attack_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def init(args):
_.-" d$$$$
.' .. d$$$$;
/ /P' d$$$$P. |\\
/ " .d$$$P' |\^"l
/ " .d$$$P' |\\^"l
.' `T$P^\"\"\"\"\" :
._.' _.' ;
`-.-".-'-' ._. _.-" .-"
Expand All @@ -35,8 +35,8 @@ def init(args):
._.'-'`-' ")/ /;/;
`-.-"..--"" " / / ;
.-" ..--"" -' :
..--""--.-" (\ .-(\\
..--"" `-\(\/;`
..--""--.-" (\\ .-(\\
..--"" `-\\(\\/;`
_. :
;`-
:\\
Expand Down
6 changes: 4 additions & 2 deletions configs/SysMonLinux-CatchAll.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@
</RuleGroup>
<!-- Event ID 11 == FileCreate. Log every file creation -->
<RuleGroup name="" groupRelation="or">
<FileCreate onmatch="exclude"/>
<FileCreate onmatch="exclude">
<TargetFilename condition="begin with">/opt/splunkforwarder/var/lib/splunk/modinputs/journald</TargetFilename> <!--Exclude Splunk Modinput Journal-->
</FileCreate>
</RuleGroup>
<!--Event ID 23 == FileDelete. Log all files being deleted -->
<RuleGroup name="" groupRelation="or">
<FileDelete onmatch="exclude"/>
</RuleGroup>
</EventFiltering>
</Sysmon>
</Sysmon>
25 changes: 25 additions & 0 deletions configs/rsyslog_logrotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/var/log/syslog
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 7
daily
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}
3 changes: 2 additions & 1 deletion terraform/ansible/roles/linux_common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
#- include_tasks: update_packages.yml
- include_tasks: disable-dnssec.yml
- include_tasks: disable-autoupgrade.yml
- include_tasks: update_sshd_config.yml
- include_tasks: update_sshd_config.yml
- include_tasks: update_rsyslog_logrotate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: copy rsyslog logrotate config template
become: true
copy:
src: "../../configs/rsyslog_logrotate"
dest: "/etc/logrotate.d/rsyslog"

0 comments on commit 52770c1

Please sign in to comment.