Deployment Architecture

How do I configure splunk forwarder to forward files with XLS extension?

phoe721
New Member

I have files with xls extension, but actually it's csv contents.
How do I set splunk forwarder to forward these files with xls extension?

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

If you haven't reviewed the Splunk tutorial, I recommend it: Splunk Tutorial. Part 3 talks about getting data into Splunk.

Specifically, you just need to specify a monitor stanza in inputs.conf. The stanza should reference the file(s) that you want to forward.
More info at Edit inputs.conf in the Getting Data In manual.

View solution in original post

0 Karma

phoe721
New Member

I have edited my inputs.conf as follows:
[monitor:///home/logs/xyz]
whitelist = .*$
recursive = true

But I still get:
TailingProcessor - Ignoring file '/home/logs/xyz/abc.xls' due to: binary

0 Karma

phoe721
New Member

Thank you so much for your help! I'll give it a try!

0 Karma

lguinn2
Legend

If you haven't reviewed the Splunk tutorial, I recommend it: Splunk Tutorial. Part 3 talks about getting data into Splunk.

Specifically, you just need to specify a monitor stanza in inputs.conf. The stanza should reference the file(s) that you want to forward.
More info at Edit inputs.conf in the Getting Data In manual.

0 Karma

lguinn2
Legend

Set inputs.conf to this

[monitor:///home/logs/xyz]
sourcetype=myCSV

You don't need the other settings. I do think you should assign a sourcetype. But since Splunk thinks the file is binary, you will need props.conf as follows:

[myCSV]
NO_BINARY_CHECK = true

Now, if the file is actually binary, you will get gibberish in Splunk. But if the file really is in CSV format, it should index properly. You might want to set some other properties in props.conf as well, but this should get you started.

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...