Getting Data In

How to index zero byte files where the information is found in the name of the file?

pedromvieira
Communicator

How to index zero byte files?
For some reason, a customer created a monitoring file that only contains information on the filename.

Ex:

abx_20160627_exit.ok

I'd like to index the timestamp on the filename and the "type" (exit).

Besides create a script to list and append to another file, can Splunk index this type of data?

Thanks.

0 Karma
1 Solution

woodcock
Esteemed Legend

pedromvieira
Communicator

Perfect solution. Even better than expected.

0 Karma

jkat54
SplunkTrust
SplunkTrust

You can create a scripted input that does an ls -l or dir on the directory/folder.

0 Karma

pedromvieira
Communicator

Thanks for the input. The app above solved the problem.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...