Dashboards & Visualizations

Issue with Field other than _time to represent in x-axis

k_harini
Communicator

Hi,

I have to represent a different time field in the time chart. I have tried couple of options and it is not working
index="myindex" | eval Due_Time = strptime('Due By',"%d.%m.%Y")|bin Due_Time span=1mon |chart count over Due_Time by "Priority"
Here i get results in string and not date

  1. index="myindex" | eval Due_Time = strftime(strptime('Due By',"%d.%m.%Y"),"%d.%m.%Y")|bin Due_Time span=1mon |chart count over Due_Time by “Priority” - Here it displays date but span is not working.

Please help

Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

I don't understand field 'Due By' in strfptime function.
Every way try to invert eval and bin commands:

index="myindex" | eval Due_Time = strptime('Due By',"%d.%m.%Y") |bin Due_Time span=1mon | eval Due_Time = strftime(Due_Time,"%d.%m.%Y") |chart count over Due_Time by “Priority” 

Bye.
Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

I don't understand field 'Due By' in strfptime function.
Every way try to invert eval and bin commands:

index="myindex" | eval Due_Time = strptime('Due By',"%d.%m.%Y") |bin Due_Time span=1mon | eval Due_Time = strftime(Due_Time,"%d.%m.%Y") |chart count over Due_Time by “Priority” 

Bye.
Giuseppe

k_harini
Communicator

Thank you! Worked the way i wanted 🙂

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...