-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to parse "dd/MMM/yyyy:HH:mm:ss Z" timestamp in logs type metrics #126
Comments
Hi @hardikbajaj thanks for reporting this issue! To make sure I follow your question, you're able to query opensearch with grafana to find the data you need, but the Logs visualization is not able to parse date formats of dd/MMM/yyyy:HH:mm:ss Z is that correct? I'm checking in with our team that works on the Logs Visualization to see if this is a known limitation, or if there's something we need to do to update the Open Search Plugin to support this |
Thanks @sarahzinger ! Yeah that's the bug! |
We have a few ways for folks in the grafana community to interact:
That said if you see bugs you're always welcome to open an issue even if you're not sure it's a bug! |
Would you mind opening the query-inspector, going to the JSON, tab, and choose the Dataframe JSON option and sending that to us after you've removed any sensitive data? |
Hey! these are just fake apache logs, I'm adding the response here.
|
Hi @hardikbajaj, on the data source config editor page, what if you put Talking about this part here (but not necessarily the same settings): |
Yeah, that's the time field I added and It's a general time field that filebeat adds which is the time of ingestion of log. So that's actually very different from timestamp. I'm just doing a local test with this, so just found this bug. |
Hi @hardikbajaj it does seem like Grafana’s Log volume panel doesn't support dd/MMM/yyyy:HH:mm:ss Z format. Is there a way you can configure your log source to store the timestamp field in an ISO string format or similar? Edit: Some additional info - the best date format to return would be a utc millisecond timestamp, since that is more compatible with our visualization plugins and requires fewer transformations, but an ISO string (like in |
Hi @hardikbajaj We added a new task to handle on our end any unusual time formats from OpenSearch. |
What happened:
In
Logs
(and raw data) metrics,timestamp
is being passed asdd/MMM/yyyy:HH:mm:ss Z
and Grafana is not able to parse it.We get timeseries data when metrics is set as count, max, etc, because time is passed as
epoch_millis
What you expected to happen:
Time properly being parsed and logs being displayed as timeseries dataframe
How to reproduce it (as minimally and precisely as possible):
See the
logs
of your index with time format asdd/MMM/yyyy:HH:mm:ss Z
Anything else we need to know?:
Screenshots proofs:
timestamp being parsed correctly in count
timestamp not being parsed correctly in logs
Environment:
The text was updated successfully, but these errors were encountered: