yokawasa / fluent-plugin-azure-loganalytics

Azure Log Analytics output plugin for Fluentd
https://rubygems.org/gems/fluent-plugin-azure-loganalytics
Apache License 2.0
53 stars 9 forks source link

time filed added as string #19

Closed floriankoch closed 4 years ago

floriankoch commented 4 years ago

If i add an timefield to the output

add_time_field true
time_field_name xtime
time_format %Y%m%d-%H:%M:%S
localtime true

its added as string in LogAnalytics, how can i change this to type timestamp?

yokawasa commented 4 years ago

@floriankoch

Can you try the following time format?

add_time_field true
time_field_name xtime
time_format %FT%T%z
localtime true
yokawasa commented 4 years ago

@floriankoch if you give time field with the ISO 8601 format YYYY-MM-DDThh:mm:ssZ, it'll be ingested as timestamp type. Please try this

time_format %FT%T%z

I'm closing the issue. Please open another issue if you have any problems

floriankoch commented 4 years ago

@yokawasa yes this works, thank you