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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Self-Healing Pipeline Is Now Generally Available: AI-Powered CIM Compliance

Maintaining data integrity across security and analytics pipelines is an ongoing challenge. Data ...