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!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

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

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...