Splunk Search

Index XML files from a url

abhijitnath89
Path Finder

How can we index XML files from a url ending in .xml in splunk?
We have an XML URL that we need to index into splunk, is there any way that can be done?

Tags (1)
0 Karma

woodcock
Esteemed Legend

You could create your own modular input to do this; it would make a fine learning project.

0 Karma

woodcock
Esteemed Legend

You could start with the GetWatchList app which does this for CSV files and deconstruct and repurpose it:

https://splunkbase.splunk.com/app/635/

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi abhijitnath89,
the easiest way is to create a script that copies your xml files in your disk and then you can index it as usual.
Bye.
Giuseppe

0 Karma

abhijitnath89
Path Finder

We cannot put the XML files in the disk, it is possible to directly take the XML information from the URL using something like website input?

0 Karma

gcusello
SplunkTrust
SplunkTrust

To save xml file on disk is easier, but you can create a script that parses the xml file.
After you put this file in your app's bin folder.
And call your script in inputs.conf, output is sent to Splunk.

To see how to create this script see a script in one app like TA-Windows or TA-nix.

Bye.
Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...