Splunk Search

Search time - xpath command namespace handling

gregbujak
Path Finder

Splunk: 5.0.4

Anyone know how to give the namespace to the xpath command? When looking at the xpath command and other discussions they always speak to simple examples without namespaces.

For example when providing a modified xml from the Splunk examples with a namespace, it justifiably doesn't return a value anymore.

command: | xpath outfield=identity_id "//DataSet/identity_id"

document:

<DataSet xmlns="http://www.w3schools.com/furniture">
        <identity_id>3020</identity_id>
        <instrument_id>912383KM1</instrument_id>
        <transaction_code>SEL</transaction_code>
        <sname>BARC</sname>
        <currency_code>USA</currency_code>
</DataSet>

Any help would be appreciated.

Tags (2)
1 Solution

gregbujak
Path Finder

According to Splunk, namespaces aren't supported as of 5.0.4. Disappointing, as only the most trivial xml based use cases can be handled at this time.

Hopefully a future release will include namespace support.

View solution in original post

gregbujak
Path Finder

According to Splunk, namespaces aren't supported as of 5.0.4. Disappointing, as only the most trivial xml based use cases can be handled at this time.

Hopefully a future release will include namespace support.

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