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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...