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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...