diff --git a/attack_range.py b/attack_range.py index 6e5a8993..c8cfdec2 100644 --- a/attack_range.py +++ b/attack_range.py @@ -24,7 +24,7 @@ def init(args): _.-" d$$$$ .' .. d$$$$; / /P' d$$$$P. |\\ - / " .d$$$P' |\^"l + / " .d$$$P' |\\^"l .' `T$P^\"\"\"\"\" : ._.' _.' ; `-.-".-'-' ._. _.-" .-" @@ -35,8 +35,8 @@ def init(args): ._.'-'`-' ")/ /;/; `-.-"..--"" " / / ; .-" ..--"" -' : -..--""--.-" (\ .-(\\ - ..--"" `-\(\/;` +..--""--.-" (\\ .-(\\ + ..--"" `-\\(\\/;` _. : ;`- :\\ diff --git a/configs/SysMonLinux-CatchAll.xml b/configs/SysMonLinux-CatchAll.xml index 4f19a899..eec4e08e 100644 --- a/configs/SysMonLinux-CatchAll.xml +++ b/configs/SysMonLinux-CatchAll.xml @@ -22,11 +22,13 @@ - + + /opt/splunkforwarder/var/lib/splunk/modinputs/journald + - \ No newline at end of file + diff --git a/configs/rsyslog_logrotate b/configs/rsyslog_logrotate new file mode 100644 index 00000000..78ea516b --- /dev/null +++ b/configs/rsyslog_logrotate @@ -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 +} diff --git a/terraform/ansible/roles/linux_common/tasks/main.yml b/terraform/ansible/roles/linux_common/tasks/main.yml index ab791db2..5e5d1593 100644 --- a/terraform/ansible/roles/linux_common/tasks/main.yml +++ b/terraform/ansible/roles/linux_common/tasks/main.yml @@ -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 \ No newline at end of file +- include_tasks: update_sshd_config.yml +- include_tasks: update_rsyslog_logrotate.yml diff --git a/terraform/ansible/roles/linux_common/tasks/update_rsyslog_logrotate.yml b/terraform/ansible/roles/linux_common/tasks/update_rsyslog_logrotate.yml new file mode 100644 index 00000000..941d276d --- /dev/null +++ b/terraform/ansible/roles/linux_common/tasks/update_rsyslog_logrotate.yml @@ -0,0 +1,5 @@ +- name: copy rsyslog logrotate config template + become: true + copy: + src: "../../configs/rsyslog_logrotate" + dest: "/etc/logrotate.d/rsyslog"