splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

type property in outputs.conf is missing from Stanza.content

Open anotomoniz-r7 opened this issue 12 years ago • 5 comments

Attempting to retrieve the type parameter from a syslog stanza in outputs.conf using service["outputs"]["foo"].content["type"] fails. It turns out type collides with another value parsed form the atom feed result, which is also called type but denotes the entity's content type. Thus, each entity has a type field which looks something like ["tcp", "text/xml"]. And before assigning Stanza.content, the type field is stripped out as "filtering some of the noise". All of this seems to indicate the problem is caused by a mixture of the property's name and a small bug in the Atom feed parser you're using.

The property is still accessible via a direct call to the REST API using service.get("properties/outputs/foo/type"), but its absence from the SDK is quite inconvenient.

anotomoniz-r7 avatar Aug 19 '14 17:08 anotomoniz-r7

Any update on the status of this issue?

anotomoniz-r7 avatar Sep 18 '14 17:09 anotomoniz-r7

Hi @anotomoniz-r7 we're going to look into this shortly.

glennblock avatar Oct 16 '14 21:10 glennblock

@anotomoniz-r7 I think I've got a fix for you

shakeelmohamed avatar Nov 14 '14 11:11 shakeelmohamed

Just merged the fix to the develop branch, it will go out with the next release!

shakeelmohamed avatar May 28 '15 01:05 shakeelmohamed

Hi @anotomoniz-r7 we've just released v1.4.0 that addresses this.

shakeelmohamed avatar Aug 05 '15 00:08 shakeelmohamed