<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181674#M36423</link>
    <description>&lt;P&gt;I think too.&lt;/P&gt;

&lt;P&gt;You solution is modular input:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/108190/how-to-index-a-binary-data-from-udp"&gt;http://answers.splunk.com/answers/108190/how-to-index-a-binary-data-from-udp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2014 13:30:31 GMT</pubDate>
    <dc:creator>guilmxm</dc:creator>
    <dc:date>2014-08-14T13:30:31Z</dc:date>
    <item>
      <title>Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181662#M36411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i'm trying to implement a custom Charset-Decoder for an udp input. I'm using the following settings in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::udp:515]
sourcetype=my_sourcetype
unarchive_cmd=/usr/bin/perl $SPLUNK_HOME/etc/apps/foo/bin/decode.pl

[my_sourcetype]
invalid_cause = archive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However this doesn't work. The incoming network data won't be processed by my decode-script. Is my splunk configuration correct?&lt;BR /&gt;
I also tried other variations of the configuration, like putting unarchive_cmd in the sourcetype-stanza. But they all won't work. &lt;/P&gt;

&lt;P&gt;I can't see any words in the documentation of unarchive_cmd and invalid_cause why this isn't supposed to work.&lt;/P&gt;

&lt;P&gt;Any Ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181662#M36411</guid>
      <dc:creator>HansWurscht</dc:creator>
      <dc:date>2020-09-28T17:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181663#M36412</link>
      <description>&lt;P&gt;Hi, I have no experience with using unarchive_cmd within UDP flow, but i do with unarchive_cmd itself.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Is your perl script built to read data from stdin ? (this is the way Splunk will send data to your script)&lt;/LI&gt;
&lt;LI&gt;If the data is not proceeded by your script, this is probably that your source stanza in props.conf does not match your input, have you any trace in splunkd.log ?&lt;/LI&gt;
&lt;LI&gt;Not sure this is relevant with UDP, but with files you have to add NO_BINARY_CHECK = true to your source stanza in props.conf&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181663#M36412</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2020-09-28T17:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181664#M36413</link>
      <description>&lt;P&gt;And you should try moving the invalid_clause = archive from your sourcetype to your source stanza, this is where it needs to be located&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181664#M36413</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-08-14T12:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181665#M36414</link>
      <description>&lt;P&gt;Additionally, make sure your data actually is coming in on UDP port 515 instead of the much more common syslog port 514.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181665#M36414</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-14T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181666#M36415</link>
      <description>&lt;P&gt;Thanks for the answers.&lt;BR /&gt;
The data appears in splunk, just the decoding part won't work.&lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/122103"&gt;@guilmxm&lt;/a&gt;:&lt;BR /&gt;
1. the perl-Script will read from STDIN and print to STDOUT&lt;BR /&gt;
2. no coressponding entries in splunkd.log. I could increase the debugging level&lt;BR /&gt;
3. I added the NO_BINARY_CHECK=true to the source stanza in props.conf. But this doesn't change anything &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;
4. I moved invalied_cause from [my_sourcetype] to [source::udp:515] but this also didn't change the behaviour &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172708"&gt;@martin_mueller&lt;/a&gt;:&lt;BR /&gt;
My data is coming to UDP 515. I'm testing with netcat:&lt;BR /&gt;
 cat /tmp/binary_to_splunk | netcat -u splunk.home.lan 515&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181666#M36415</guid>
      <dc:creator>HansWurscht</dc:creator>
      <dc:date>2020-09-28T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181667#M36416</link>
      <description>&lt;P&gt;@HansWurscht: If you have the data undecoded, then for sure your stanza is not matched, whatever you will change in configuration this won't change.&lt;BR /&gt;
When you achieve a search against your data like "| stats by source" what is the source reported by splunk ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:38:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181667#M36416</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-08-14T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181668#M36417</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/122103"&gt;@guilmxm&lt;/a&gt;:&lt;BR /&gt;
Sorry, i don't understand that.&lt;/P&gt;

&lt;P&gt;My data appears in splunk with source=udp:515 and sourcetype=my_sourcetype. The data in splunk is undecoded (shows up in a hex format \xF1\xF2\xF3...). The unarchive_cmd isn't working.&lt;/P&gt;

&lt;P&gt;unarchice_cmd and invalid_cause are listed under the source stanza in props.conf:&lt;/P&gt;

&lt;P&gt;[source::udp:515]&lt;BR /&gt;
 NO_BINARY_CHECK=true&lt;BR /&gt;
 sourcetype=my_sourcetype&lt;BR /&gt;
 invalid_cause = archive&lt;BR /&gt;
 unarchive_cmd=/usr/bin/perl $SPLUNK_HOME/etc/apps/foo/bin/decode.pl&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181668#M36417</guid>
      <dc:creator>HansWurscht</dc:creator>
      <dc:date>2020-09-28T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181669#M36418</link>
      <description>&lt;P&gt;On the &lt;CODE&gt;invalid_cause&lt;/CODE&gt; - that can only be set for sourcetype stanzas, not for source or host stanzas as per &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 12:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181669#M36418</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-14T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181670#M36419</link>
      <description>&lt;P&gt;I see, i massively use unarchive_cmd in my App (&lt;A href="http://apps.splunk.com/app/1753/"&gt;http://apps.splunk.com/app/1753/&lt;/A&gt;) to decode nmon data through party converter (initially Perl then Python) you may sometimes fight with it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I mean i think your stanza does not match (like some kind of regex that will not match a pattern), but as it is, it's seems correct. &lt;/P&gt;

&lt;P&gt;I guess you've reloaded Splunk after each setting change ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181670#M36419</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-08-14T13:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181671#M36420</link>
      <description>&lt;P&gt;What about your inputs.conf config ? Do you specify the sourcetype in it ?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:14:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181671#M36420</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-08-14T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181672#M36421</link>
      <description>&lt;P&gt;I restarted splunk after changing the configuration files.&lt;/P&gt;

&lt;P&gt;I think the unarchive_cmd simply won't work on network inputs.&lt;/P&gt;

&lt;P&gt;The sourcetype is set correctly, so i don't think there is a problem with that.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181672#M36421</guid>
      <dc:creator>HansWurscht</dc:creator>
      <dc:date>2014-08-14T13:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181673#M36422</link>
      <description>&lt;P&gt;Looking at &lt;A href="http://wiki.splunk.com/Community:HowIndexingWorks"&gt;http://wiki.splunk.com/Community:HowIndexingWorks&lt;/A&gt; it seems you're right - the &lt;CODE&gt;archiveProcessor&lt;/CODE&gt; is not part of the processing pipeline for network inputs but rather for files.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181673#M36422</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-14T13:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181674#M36423</link>
      <description>&lt;P&gt;I think too.&lt;/P&gt;

&lt;P&gt;You solution is modular input:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/108190/how-to-index-a-binary-data-from-udp"&gt;http://answers.splunk.com/answers/108190/how-to-index-a-binary-data-from-udp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181674#M36423</guid>
      <dc:creator>guilmxm</dc:creator>
      <dc:date>2014-08-14T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why props.conf configuration with unarchive_cmd on udp input doesn't work?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181675#M36424</link>
      <description>&lt;P&gt;I've created a support case to clarify this in the documentation.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-props-conf-configuration-with-unarchive-cmd-on-udp-input/m-p/181675#M36424</guid>
      <dc:creator>HansWurscht</dc:creator>
      <dc:date>2014-08-14T13:45:47Z</dc:date>
    </item>
  </channel>
</rss>

