In splunk query i need to convert time format as below .
Current format - Apr 13 17:58:35
Required Format : 04/13/2012 5:58:35 PM
asked 16 Apr '12, 03:23
I believe that you'll have to make a two stage operation, first convert your input format to
However, since the data coming in has no year specification, I'm not sure that you would get usable results. It may be that you'll have to make changes to the logging application so that the full date is being logged.
For information regarding
Ah, ziegfried has an important point. If Splunk has read your timestamp (without the year) and parsed and indexed it correctly (you can compare the the timestamps in the events with the timestamp next to the blue down-arrow-thingy to the left of the event), then you can skip the first part and use the
Hope this helps somewhat anyway,
Here is how to create a new field by parsing and formatting a date value using Splunk's eval command:
answered 16 Apr '12, 04:01