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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...