Hi,
Firstly, I have a question regarding what components are required for the forwarding of the logs to Splunk from my webserver.
My current setup is:
**Splunk running on a Linux Server:**
- Splunk Indexer
- Reporting and Management for OSSEC app and add-on, installed, but unconfigured
**Linux Webserver to be monitored:**
- OSSEC hids 2.9.2, installed with a bit of configurations done.
- SplunkUniversalForwarder, installed and configured, currently have some system stats indexed in Splunk Indexer.
Are the necessary components that is required to forward data to Splunk in both systems?
Secondly, The current problems that i am facing now is that:
1. I am unsure of how to check whether OSSEC is monitoring the web server and if the configurations made in ossec.conf are correct. I am only looking at monitoring some directories and alerting and logging if there are any changes made.
I have not enabled email notification and would like to configure that on Splunk instead. Would this be possible? This is my ossec.conf file.
no rules_config.xml pam_rules.xml sshd_rules.xml telnetd_rules.xml syslog_rules.xml arpwatch_rules.xml symantec-av_rules.xml symantec-ws_rules.xml pix_rules.xml named_rules.xml smbd_rules.xml vsftpd_rules.xml pure-ftpd_rules.xml proftpd_rules.xml ms_ftpd_rules.xml ftpd_rules.xml hordeimp_rules.xml roundcube_rules.xml wordpress_rules.xml cimserver_rules.xml vpopmail_rules.xml vmpop3d_rules.xml courier_rules.xml web_rules.xml web_appsec_rules.xml apache_rules.xml nginx_rules.xml php_rules.xml mysql_rules.xml postgresql_rules.xml ids_rules.xml squid_rules.xml firewall_rules.xml apparmor_rules.xml cisco-ios_rules.xml netscreenfw_rules.xml sonicwall_rules.xml postfix_rules.xml sendmail_rules.xml imapd_rules.xml mailscanner_rules.xml dovecot_rules.xml ms-exchange_rules.xml racoon_rules.xml vpn_concentrator_rules.xml spamd_rules.xml msauth_rules.xml mcafee_av_rules.xml trend-osce_rules.xml ms-se_rules.xml zeus_rules.xml solaris_bsm_rules.xml vmware_rules.xml ms_dhcp_rules.xml asterisk_rules.xml ossec_rules.xml attack_rules.xml openbsd_rules.xml clam_av_rules.xml sysmon_rules.xml opensmtpd_rules.xml exim_rules.xml local_rules.xml 14400 yes /etc,/usr/bin,/usr/sbin /bin,/sbin,/boot /$dir /home/$userdir /etc/mtab /etc/mnttab /etc/hosts.deny /etc/mail/statistics /etc/random-seed /etc/adjtime /etc/httpd/logs /etc/utmpx /etc/wtmpx /etc/cups/certs /etc/dumpdates /etc/svc/volatile C:\WINDOWS/System32/LogFiles C:\WINDOWS/Debug C:\WINDOWS/WindowsUpdate.log C:\WINDOWS/iis6.log C:\WINDOWS/system32/wbem/Logs C:\WINDOWS/system32/wbem/Repository C:\WINDOWS/Prefetch C:\WINDOWS/PCHEALTH/HELPCTR/DataColl C:\WINDOWS/SoftwareDistribution C:\WINDOWS/Temp C:\WINDOWS/system32/config C:\WINDOWS/system32/spool C:\WINDOWS/system32/CatRoot /var/ossec/etc/shared/rootkit_files.txt /var/ossec/etc/shared/rootkit_trojans.txt /var/ossec/etc/shared/system_audit_rcl.txt /var/ossec/etc/shared/cis_debian_linux_rcl.txt /var/ossec/etc/shared/cis_rhel_linux_rcl.txt /var/ossec/etc/shared/cis_rhel5_linux_rcl.txt 127.0.0.1 ::1 ^localhost.localdomain$ 172.22.0.2 1 host-deny host-deny.sh srcip yes firewall-drop firewall-drop.sh srcip yes disable-account disable-account.sh user yes restart-ossec restart-ossec.sh route-null route-null.sh srcip yes host-deny local 6 600 firewall-drop local 6 600 syslog /var/log/messages syslog /var/log/secure syslog /var/log/maillog apache /var/log/httpd/error_log apache /var/log/httpd/access_log command df -P full_command netstat -tan |grep LISTEN |egrep -v '(127.0.0.1| ::1)' | sort full_command last -n 5 localhost 514 default
2. Where can i find the syslogs of the stuffs that are monitored? And from there on, how should i be forwarding it to Splunk for indexing?
Thank you, i would appreciate any guidance or help! :)
↧