Splunk Search

restful call search Data format

svemurilv
Path Finder

|rest /services/authentication/users splunk_server=local |stats count by updated in this search how could we get the updated in month format like "MAY/JULY"
Am expecting data like
Month count
JULY ---2500

Tags (2)
0 Karma
1 Solution

somesoni2
Revered Legend

Try like this

|rest /services/authentication/users splunk_server=local | eval updated=upper(strftime(strptime(substr(updated,1,10),"%Y-%m-%d"),"%B"))
|stats count by updated

View solution in original post

somesoni2
Revered Legend

Try like this

|rest /services/authentication/users splunk_server=local | eval updated=upper(strftime(strptime(substr(updated,1,10),"%Y-%m-%d"),"%B"))
|stats count by updated
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...