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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...