Splunk Search

How can I eliminate characters or words from the result?

albinortiz
Engager

I have an output that looks like this: AV_DATE=Jan-1-2018

I want to be able to just display the date as so: Jan-1-2018

How can I do that?

Tags (1)
0 Karma

TISKAR
Builder

@ albinortiz , can you test this

| makeresults | eval _raw="AV_DATE=Jan-1-2018"| extract kvdelim="="

OR

| makeresults | eval field="AV_DATE=Jan-1-2018" | rex field=field "AV_DATE=(?<field>.*)"
0 Karma
Get Updates on the Splunk Community!

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...