Splunk Search

Examples: How do I edit the resulting value in search query?

the_wolverine
Champion

I have dates that look like "01/09/2014 00:00:00" that I want to chart. The dates take up too much real estate so I want to edit them so they are just:

01/09, 01/08, 01/07, etc.

0 Karma
1 Solution

the_wolverine
Champion

One way is to use rex. Assuming field named time:

my search | rex field=time "(?P<time>\d+/\d+[^/]+)"

View solution in original post

0 Karma

the_wolverine
Champion

One way is to use rex. Assuming field named time:

my search | rex field=time "(?P<time>\d+/\d+[^/]+)"
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 ...