Splunk Search

Convert Time

itsmevic
Communicator

After running my query:

| metadata type=sourcetypes index= OR index=_**

I get the following columns:

firstTime lastTime
1578610402 1580348515

How would I convert this time to a readable format?

Tags (1)
0 Karma

to4kawa
Ultra Champion
your search
| convert ctime(firstTime)
| convert ctime(lastTime)

yes, command is convert.

0 Karma
Get Updates on the Splunk Community!

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...