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
i am trying to get the time out of an nginx log into a mysql database. But it fails saying that the field "time" can not be null. Witch makes sense since this field is not nullable. But the question is ... how do i get the event time field into the mysql database? I am feeling that might be an obvious question but i can not get it working. This is how far i got so far. The first part is taken from here:
try this
<filter **> @type record_transformer
enable_ruby false
date ${time}
then, in column_mapping use date instead of time.
It seems that format is going to the Time part of the event so it wont be available as part of the record anymore. With the filter, we are inserting the date field back to the record.
Hey guys,
i am trying to get the time out of an nginx log into a mysql database. But it fails saying that the field "time" can not be null. Witch makes sense since this field is not nullable. But the question is ... how do i get the event time field into the mysql database? I am feeling that might be an obvious question but i can not get it working. This is how far i got so far. The first part is taken from here:
https://docs.fluentd.org/v/0.12/parser/nginx
This is the config:
Logging looks like this:
It would be nice if you guys could help me and also put a little hint in the description for others failing with this for hours like me.
The text was updated successfully, but these errors were encountered: