






<localfile>
<log_format>syslog</log_format>
<location>/var/log/oracle.log</location>
<out_format>{"oraclelog":$(log)}</out_format>
</localfile>And the rule I'm using is:
<group name="oracledb">
<rule id="100002" level="3">
<field name="oraclelog.type">com.oraclecloud.vcn.flowlogs.DataEvent</field>
<description>OracleCloud flowlog parent rule</description>
</rule>
</group>Which issued the following kind of alerts in my dashboard:
Hope this helps!
--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/XW8qrdpGwZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/bcdcaf56-02ac-49fe-8fd1-b5cc59c068e9n%40googlegroups.com.
![]() |
|
Hi There!I see you got the rules part addressed since the logtest is showing a triggered rule for your test event, so it's probably not related to that.The logall_json variable enables logging of all incoming data to /var/ossec/logs/archives/archives.json regardless of the rule matching and decoding stages.If the new log lines don't show in your archives file, it means that they are not getting to the manager at all.In order to make sure you are correctly parsing your logs, I suggest you check that you are properly retrieving the log files (with possible use of a wildcard, since it seems your log names contain a hash).Secondly I'd try and check that the log files ownership and permissions allow the wazuh user to read them.In order to config your Agent, it's best to use centralized configuration by creating a group and assigning the Agent to it:Go to groups:
With this done, I'd go to the agent's terminal and make sure you are using the right permissions for the files.Usually, log files have 640 octal permissions, which you would change using chmod.Aside from that you might have to need the wazuh user to the logging group of whatever software is dumping your logs.You can reach back to us for assistance on the latter if needed.I hope this helps a bit.Regards,Fede
On Tuesday, September 20, 2022 at 5:48:21 AM UTC-3 utk...@null.co.in wrote:Hi Community,I am running Wazuh 4.3.7 and trying to ingest Oracle Cloud Logs using Wazuh Agent 4.3.7.Wazuh agent is reading the log file but I am unable to see anything on Kibana.I have decoder and alert rules for the same still nothing is there.I have also enabled logall option on Wazuh Manager but still no OCI logs are there.I am understanding why agent is not forwarding the logs.For your reference I have attached the agent logs screenshot decoder/alert rule screenshot and OCI sample logs.Thanks & RegardsUtkarsh
--You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
Hi Utkarsh,The first time you start the agent with the new <localfile> block it will parse the full output.Afterwards it will only read new lines.One technique to check whether some log is being ingested is appending whatever log you want to test into a file you know is being monitored properly, such as /var/log/messages or /var/log/syslog (if you can afford to mess those up a little).So you can do something like:cat testlog.log >> /var/log/messageswith your agent running and it should at least show up in the archives.json/archives.log files if you enable logall/logall_json.Let me know if this helped.
Hi Utkasrh,Can you share some sample log for me to try to replicate on my end?Regards,Fede
Hi There,I was struggling to get your logs to work as well when I noticed the log lines are all above the maximum log size Wazuh can handle.I'm actually getting the following kind of errors:root@manager:~# grep Logs /var/ossec/logs/ossec.log2022/09/30 12:57:09 wazuh-logcollector: ERROR: Large message size from file '/var/log/utkarsh/Logs_2022-09-11_04_27_to_2022-09-18_04_27_UTC.json' (length = 65279): '{"results":[{"data":{"datetime":1663475261000,"logContent":{"dat'...Are these logs output in a single line format?If you could change that, the Wazuh part should work just fine.Regards,Fede
On Friday, September 30, 2022 at 3:13:43 AM UTC-3 utk...@null.co.in wrote:
Hi Federico,Please find the attached sample logs.thank youOn Sep 29 2022, at 10:18 pm, Federico Gustavo Galland <federico...@wazuh.com> wrote:Hi Utkasrh,Can you share some sample log for me to try to replicate on my end?Regards,Fede
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/5bcb6e5c-da67-4f24-aee3-2544eca81ad5n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/XW8qrdpGwZc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/F051D3BF-3425-4080-BF9A-FC3022A1F5A2%40getmailspring.com.