Splunk Search

Export list of files being indexed into Splunk

efelder0
Communicator

Is there a way (Splunk feature or search cmd) to export a list of files that were indexed and then create a report?

Tags (1)
1 Solution

Ayn
Legend

You can use metadata and grab the sources from there:

| metadata type=sources

View solution in original post

Ayn
Legend

You can use metadata and grab the sources from there:

| metadata type=sources

Ayn
Legend

... | eval recentTime=strftime(recentTime,"%+")

0 Karma

efelder0
Communicator

Yes, that works. Here is my search string:
| metadata type=sources index=* | sort +source | table recentTime source

However, 'recentTime' is in this format: 1335274216
best way to convert it to MM/DD/YY HH:MM:SS ??

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...