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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...