Getting Data In

How do I process rar files on a Windows Splunk install?

approachct
Path Finder

I thought that Splunk would read compressed files and load them, however it is telling me the rar file is a binary. I have a directory loader in Splunk set up with type IIS-2. Can Splunk load the rar files with IIS logs inside them?

Tags (2)
0 Karma

jbsplunk
Splunk Employee
Splunk Employee

You should use unarchive_cmd in props.conf for the sourcetype. See the following documentation:

http://www.splunk.com/base/Documentation/latest/admin/Propsconf

unarchive_cmd = <string>
* Only called if invalid_cause is set to "archive".
* This field is only valid on [source::<source>] stanzas.
* <string> specifies the shell command to run to extract an archived source.
* Must be a shell command that takes input on stdin and produces output on stdout.
* Use _auto for Splunk's automatic handling of archive files (tar, tar.gz, tgz, tbz, tbz2, zip)
* Defaults to empty.
0 Karma

approachct
Path Finder

Thanks. I have this configured but it is not working. How can I confirm or debug splunk calling the command line? It works outside splunk, but not inside it.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...