Getting Data In

Index XML files

forkingforwardt
Engager

Hello Splunkers. I'm trying to build a modular-input to index my XML files, using Python. I will wonder if some one can help me with the pithon file.
Thanks in advance

Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There are likely to be many people here you can help you with specific Python questions.

---
If this reply helps you, Karma would be appreciated.
0 Karma

msivill_splunk
Splunk Employee
Splunk Employee

To build modular inputs in Python have a look at http://dev.splunk.com/view/python-sdk/SP-CAAAER3

However you may be able to achieve what you need without building a modular input, for example if the XML is created as a file in a directory, you could poll the file and index the XML without needing to create the modular input. Also looking at Splunkbase (https://splunkbase.splunk.com/) there are several technical methods to collect data, i.e. JMS, MQTT, AMQP, etc that you may also be able to use.

0 Karma

forkingforwardt
Engager

Hello msivill. I know that i can index the file without building a modular input.
but my goal is to build a modular-input that can do it.
Thanks

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