Splunk Enterprise

eval function

shreyasamin64
Explorer

need help on eval function of trimming the month 

EX : April = APR 

all months first 3 letters 

thanks 

 

Labels (1)
0 Karma
1 Solution

Gr0und_Z3r0
Contributor
| makeresults 
| eval months="January February March April May June July August September October November December" 
| makemv delim=" " months
| mvexpand months
| eval short-month=upper(substr(months,1,3))
| fields - _time

Gr0und_Z3r0_0-1638346164590.png

 

View solution in original post

0 Karma

Gr0und_Z3r0
Contributor
| makeresults 
| eval months="January February March April May June July August September October November December" 
| makemv delim=" " months
| mvexpand months
| eval short-month=upper(substr(months,1,3))
| fields - _time

Gr0und_Z3r0_0-1638346164590.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval month=substr(month,1,3)
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...