Hello,
Thanks for your help.
When I enable logall and restart agent, I can see related logs send from txt. files. First they are flooding but in 5-6 seconds it stops. Logon/logoff activities are continuing to come but txt. file logs are not coming.
Below is my agent config to read the txt. files:
<localfile>
<location>C:\path1.txt</location>
<log_format>syslog</log_format>
</localfile>
<localfile>
<location>C:\path2.txt</location>
<log_format>syslog</log_format>
</localfile>
My ossec.log from agent (hkey registry logs are removed):
2021/02/04 12:56:49 ossec-agent: INFO: (1950): Analyzing file: 'C:\path1.txt'.
2021/02/04 12:56:49 ossec-agent: INFO: (1950): Analyzing file: 'C:\pat2h.txt'.
2021/02/04 12:56:49 ossec-agent: INFO: (6207): Ignore 'file' sregex '.log$|.htm$|.jpg$|.png$|.chm$|.pnf$|.evtx$'
2021/02/04 12:56:49 ossec-agent: INFO: (6207): Ignore 'registry' sregex '\Enum$'
2021/02/04 12:56:49 ossec-agent: INFO: Started (pid: 4892).
2021/02/04 12:56:49 ossec-agent: INFO: Started (pid: 4892).
2021/02/04 12:56:49 sca: INFO: Starting evaluation of policy: 'C:\Program Files (x86)\ossec-agent\ruleset\sca\sca_win_audit.yml'
2021/02/04 12:56:49 ossec-agent: INFO: (6000): Starting daemon...
2021/02/04 12:56:49 ossec-agent: INFO: (6010): File integrity monitoring scan frequency: 43200 seconds
2021/02/04 12:56:49 ossec-agent: INFO: (6008): File integrity monitoring scan started.
2021/02/04 12:56:49 rootcheck: INFO: Starting rootcheck scan.
2021/02/04 12:56:50 ossec-agent: INFO: (6009): File integrity monitoring scan ended.
2021/02/04 12:56:50 ossec-agent: INFO: (6012): Real-time file integrity monitoring started.
2021/02/04 12:56:50 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2021/02/04 12:56:52 sca: INFO: Evaluation finished for policy 'C:\Program Files (x86)\ossec-agent\ruleset\sca\sca_win_audit.yml'
2021/02/04 12:56:52 sca: INFO: Security Configuration Assessment scan finished. Duration: 0 seconds.
2021/02/04 12:56:54 rootcheck: INFO: Ending rootcheck scan.
2021/02/04 12:56:55 wazuh-modulesd:syscollector: INFO: Evaluation finished.
ossec.log from manager:
tail -f ossec.log
2021/02/04 12:51:41 sca: INFO: Starting Security Configuration Assessment scan.
2021/02/04 12:51:41 wazuh-modulesd:download: INFO: Module started.
2021/02/04 12:51:41 wazuh-modulesd:ciscat: INFO: Module disabled. Exiting...
2021/02/04 12:51:41 wazuh-modulesd:database: INFO: Module started.
2021/02/04 12:51:41 sca: INFO: Skipping policy '/var/ossec/ruleset/sca/cis_rhel7_linux.yml': 'Check RHEL7 family platform'
2021/02/04 12:51:41 sca: INFO: Security Configuration Assessment scan finished. Duration: 0 seconds.
2021/02/04 12:51:42 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2021/02/04 12:51:43 ossec-syscheckd: INFO: (6009): File integrity monitoring scan ended.
2021/02/04 12:51:49 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2021/02/04 12:52:06 rootcheck: INFO: Ending rootcheck scan.
In the archives log when I restart the agent, I see a lot of logs flooding regarding my txt files.
But only 2 or 3 logs are shown in Kibana.
When I check inside of txt files around 20-30 events per second is written inside txt. files
Thanks for your support!
King regards,