Splunk Search

How to display time in string format?

carlyleadmin
Contributor

Hi, I have a simple search that brings up the total count of logons in a day but I want the time part to say April,16,17,18 and so on instead of 2018-04-16 00:00:00. How can one achieve that?

alt text

0 Karma
1 Solution

damien_chillet
Builder

Add the following at the end of your search:

| convert timeformat="%B %d" ctime(_time)

View solution in original post

0 Karma

damien_chillet
Builder

Add the following at the end of your search:

| convert timeformat="%B %d" ctime(_time)
0 Karma

carlyleadmin
Contributor

Thanks Damien for the quick response. works like a charm

0 Karma

damien_chillet
Builder

You welcome! (:

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...