Getting Data In

How to write a monitor stanza in inputs.conf to add a path for *.xml files?

brod_geico
Path Finder

i need to add the path below to my inputs.conf file and it has a lot of .xml files
`/ibuapps/sales/2014-11-11/
/*.xml`

but what is the right stanza to add it to my monitor list?

0 Karma
1 Solution

cpetterborg
SplunkTrust
SplunkTrust

You have an extra slash in your path that looks strange (copy-pasted, too), but...

[monitor:///ibuapps/sales/2014-11-11/*.xml]
sourcetype = WHATEVER
KV_MODE = xml
...

should work.

View solution in original post

cpetterborg
SplunkTrust
SplunkTrust

You have an extra slash in your path that looks strange (copy-pasted, too), but...

[monitor:///ibuapps/sales/2014-11-11/*.xml]
sourcetype = WHATEVER
KV_MODE = xml
...

should work.

brod_geico
Path Finder

thanks but i have multiple files with same format like 2014-11-23 ----2013-10-12 etc * is not working

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

So have you tried:
[monitor:///ibuapps/sales/*/*.xml]

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...