vignesh
06/18/2025, 11:24 AM/var/log/pods/default_keycloak-0_*/keycloak/*.log
Output: Syslog over UDP to Wazuh manager at 10.0.0.26:5140
Fluent Bit successfully tails the target log file (testadmin.log) and detects IN_MODIFY events.
Despite file changes being detected, no logs are appearing in Wazuh's /var/ossec/logs/archives/archives.log
Tried sending logs manually, also i can see the keycloak logs also generated and tailed in the mentioned path.
echo "WAZUH_FLUENTBIT_TEST: test from keycloak pod" >> /var/log/pods/default_keycloak-0_*/keycloak/testadmin.log
Keycloak Sample logs >>> 2025-06-13T01:13:19.760328194Z stdout F 2025-06-13 01:13:19,760 WARN [org.keycloak.events] (executor-thread-3) type="LOGIN_ERROR", realmId="de5a6add-7364-4031-a3b1-656db078ad76", realmName="vignesh", clientId="account-console", userId="null", ipAddress="10.42.0.1", error="user_not_found", auth_method="openid-connect", auth_type="code", redirect_uri="http://3.110.163.102:31491/realms/vignesh/account", code_id="76a9ef75-ac2a-4bc7-85de-7c353ed6adf1", username="adminas"
Additional Test Performed:
1. Verified that logs sent via nc -u 10.0.0.26 5140 do appear in Wazuh archeives.logs, so the manager is receiving syslog data.
2. Fluent Bit logs confirm file tailing but do not show any message being sent or flushed to syslog output.
Fluent-bit conf for reference, which expected to send the logs to wazuh server.Pat
06/18/2025, 12:19 PMPat
06/18/2025, 12:20 PMvignesh
06/18/2025, 1:15 PM[2025/06/18 13:02:22] [ warn] [filter:kubernetes:kubernetes.0] could not get meta for POD fluent-bit-gxqq2
[2025/06/18 13:02:22] [debug] [stdout:stdout.0] created event channels: read=41 write=42
[2025/06/18 13:02:22] [error] [config] stdout: unknown configuration property 'mode'. The following properties are allowed: format, json_date_format, and json_date_key.
[2025/06/18 13:02:22] [ help] try the command: /fluent-bit/bin/fluent-bit -o stdout -h
[2025/06/18 13:02:22] [error] [engine] output initialization failed
[2025/06/18 13:02:23] [ info] [input] pausing tail.0
Expected Output. tail -f /var/log/pods/*keycloak*/keycloak/*.log
2025-06-18T13:13:38.536595835Z stdout F 2025-06-18 13:13:38,536 WARN [org.keycloak.events] (executor-thread-44) type="LOGIN_ERROR", realmId="c6247ae3-f7a1-448d-9853-80e8dc4f2c2f", realmName="master", clientId="security-admin-console", userId="null", ipAddress="10.42.0.1", error="user_not_found", auth_method="openid-connect", redirect_uri="http://35.154.175.62:31491/admin/master/console/#/vignesh/clients", code_id="f0ba3bfc-bc83-404b-a014-5943d01418f5", username="test123"Pat
06/18/2025, 2:41 PMPat
06/18/2025, 2:42 PMPat
06/18/2025, 2:45 PMdummy input plugin: https://docs.fluentbit.io/manual/pipeline/inputs/dummyvignesh
06/18/2025, 3:07 PMPat
06/18/2025, 5:26 PMPat
06/18/2025, 5:27 PMPat
06/18/2025, 5:27 PMPat
06/18/2025, 5:28 PMvignesh
06/19/2025, 11:36 AMPat
06/19/2025, 12:09 PMvignesh
06/19/2025, 12:12 PM/dev/null, our budget loves that address!
Thanks again, Pat!Pat
06/19/2025, 12:14 PM