You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in order to send data to a remote rsyslog server trough fluentd
I have the following configuration to send log from a hostA to hostB (where a remote Syslog server is configured to collect log on port 514 through tcp or udp)
Hi
I have installed the fluent-plugin-syslog_rfc5424 (https://github.com/cloudfoundry/fluent-plugin-syslog_rfc5424)
in order to send data to a remote rsyslog server trough fluentd
I have the following configuration to send log from a hostA to hostB (where a remote Syslog server is configured to collect log on port 514 through tcp or udp)
@type syslog_rfc5424 host hostB.com port 514 # # @type memory # flush_interval 10s # @type syslog_rfc5424 app_name_field example.custom_field_1 proc_id_field example.custom_field_2After restarting the td-agent service I do receive data on the syslog remote server iin hostB.com
But they are not well formatted, instead of the json-like data sent from the source like this line :
2021-05-26T14:18:08+02:00 abc.agent.C:.Program Files (x86).nxlog.centralog.nxlog2fluentd.log {"E-Channel":"Application","E-CollectID":"abc.com","E-Collector":"NXLog2FluentD v1.0.0-2 (go1.9)","E-Level":"INFO","E-Source":"MSExchange ADAccess","I-@Ip":"xx.tt.yy.nn","I-NomPF":"SHAREPOINT","I-NomVM":"abc","I-PathTrace":"C:\\Program Files (x86)\\nxlog\\abc\\nxlog2fluentd.log","I-RoleVM":"WS","I-TypePF":"DEV","I-TypeTrace":"OS_WINDOWS","I-TypeVM":"BO","I-VersionOS":"Windows Server 2012 R2 Standard","I-VersionSocle":"6.3","file":"C:\\Program Files (x86)\\nxlog\\abc\\nxlog2fluentd.log","message":"Process w3wp.exe (RemotePS) (PID=5568). Finished clearing the expired organizations from ProvisioningCache in Powershell virtual directory process Powershell-Proxy, 1 expired organizations cleared.","pfname":"SHAREPOINT"}
I get this
cat #000.log
What am I missing in the syslog_rfc5424 configuration for received data to be correct and json like ?
Thank in advance for any help !
The text was updated successfully, but these errors were encountered: