Hi
I have installed Snort and logs are going to json file format in the following location /var/log/snort/alert_json.txt
I want to ingest these log files into Wazuh but I can’t seem to get it to work.
I have edited the ossec.conf on my agent at /var/ossec/etc/ossec.conf and added the following entries at the end of the file.
I have been trying one by one but none of the combinations below appear to work and each time I make a change I have been restarting the agent with the following command systemctl restart wazuh-agent
<localfile>
<log_format>snort-full</log_format>
<location>/var/log/snort</location>
</localfile>
<localfile>
<log_format>snort-full</log_format>
<location>/var/log/snort/*</location>
</localfile>
<localfile>
<log_format>snort-full</log_format>
<location>/var/log/snort/alert_json.txt</location>
</localfile>
<localfile>
<log_format>json</log_format>
<location>/var/log/snort/alert_json.txt</location>
</localfile>
<localfile>
<log_format>syslog</log_format>
<location>/var/log/snort</location>
</localfile>