Getting Data In

Can we specify files in archive to be collected?

philip_w
Explorer

I couldn't find a clear guideline of doing this.
Simply, can we specify monitor path deep inside archive?

e.g.
[monitor:///tmp/.gz:/archive/.xml]

I want UF get the files directly instead of passing entire archive file to indexer and do nullQueue routing.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi philip_w,
did you already see this document?
http://docs.splunk.com/Documentation/Splunk/7.1.3/Data/Getstartedwithgettingdatain

Anyway I cannot correctly see the command you used, please put the monitor stanza in Code Sample, clicking on the button 101010.

Anyway, you can put in the monitor stanza the files or the directory you want:

[monitor:///tmp/*.gz]
...
[monitor:///archive/*.xml]
...

and then filter files using blacklist and whitelist options.

Bye.
Giuseppe

0 Karma

harsmarvania57
SplunkTrust
SplunkTrust

Hi @philip_w,

As far as I know you can't monitor selected file from archived(zipped) path.

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 ...