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
Hi,
I am using google-fluentd version 1.11.2. I've noticed that google-fluentd silently ignores log entries with improper time field. Here is configuration:
<source>
@type tail
format json
path /home/jenkins/workspace/*/storage/logs/*.log
pos_file /var/lib/google-fluentd/pos/jenkins.pos
read_from_head true
tag jobs-logs
</source>
<filter jobs-logs*>
@type record_transformer
<record>
severity ${record["severity"]}
service "jobs"
</record>
</filter>
The problem here is probably with the time field. By default google-fluentd expects a float. However, these log entries are not visible in LogsViewer and there is no information in logs or in a verbose mode that such log entries are dropped.
When I add to the configuration that time_type string and also some (invalid for test case) time_format %Y-%-m..., then google-fluentd correctly reports that time_format is invalid.
I think google-fluentd should also report about the first situation. Without any information, it made debugging missing logs very difficult.
The text was updated successfully, but these errors were encountered:
Please produce some error in the google-fluentd when the failed parsing results into ignored log lines!
(so it is visible in systemctl status google-fluentd.service and one doesn't have to spend hours debugging what is wrong).
Hi,
I am using google-fluentd version 1.11.2. I've noticed that google-fluentd silently ignores log entries with improper time field. Here is configuration:
Sample log entry looks like that:
The problem here is probably with the
time
field. By default google-fluentd expects a float. However, these log entries are not visible in LogsViewer and there is no information in logs or in a verbose mode that such log entries are dropped.When I add to the configuration that
time_type string
and also some (invalid for test case)time_format %Y-%-m...
, then google-fluentd correctly reports that time_format is invalid.I think google-fluentd should also report about the first situation. Without any information, it made debugging missing logs very difficult.
The text was updated successfully, but these errors were encountered: