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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...