Fluentd Regexp - how to extract time #3773
Unanswered
karspartha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have log lines of the format -
2022-06-06 16:43:46.930 [MyQuartzScheduler_Worker-1] DEBUG ...
I am trying to write a parse tag inside source and using regex.. I am able to extract everything but the timestamp field is coming to my output (mongdb) as String. There is some documentation on how to use 'Types'. I did that. But, I am running into multiple technical issues. While there is some documentation, there is no example on how to specify Time parameters - time_type and time_format
This is what I have
The regex works clean. I am not able to get logTime as a time field. Either the field is null in the output (db) or fluentd throws an exception. If I dont specify 'types' i am able to get it as a String. Any help (on how to specify time_type and time_format) would be appreciated. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions