<?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: unarchive_cmd for python script to decode binary file in Windows in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318159#M92765</link>
    <description>&lt;P&gt;So i've used the example you provided and created a binx app using the following and mine works.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\program files\splunk\etc\apps\binx\spool\*]
disabled = 0
followTail = 0
host = myhost
index = binx
sourcetype = binx_binary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....binx]
invalid_cause = archive
unarchive_cmd = binx.pl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't have any sourcetype for binx_binary in my props.conf or NO_BINARY_CHECK&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:02:50 GMT</pubDate>
    <dc:creator>jberwick_splunk</dc:creator>
    <dc:date>2020-09-29T15:02:50Z</dc:date>
    <item>
      <title>unarchive_cmd for python script to decode binary file in Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318155#M92761</link>
      <description>&lt;P&gt;Further to my question the other day about decoding a binary file I finally got it working in Linux!!!&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/548714/unarchive-cmd-for-decoding-binary-file-with-python.html"&gt;https://answers.splunk.com/answers/548714/unarchive-cmd-for-decoding-binary-file-with-python.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Problem is when I installed it on Windows it fell in a massive heap. The decoding script still works when I run it manually from a Windows command prompt.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;type C:\Splunk\Log_Spool\20170717.evl | C:\Python27\python.exe C:\Temp\TA-customer\bin\decode_evl.py &amp;gt; C:\Splunk\Log_Spool\20170717.evl.decoded
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However no matter what combination I put into props.conf it just wont run. Splunk just hoovers up the binary file as is and doesn't even give a warning or error that unarchive_cmd might be wrong.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-customer\spool\*.evl]
disabled = 0
index = customer
sourcetype = customer:evl
followTail = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;###################################################
[source::C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-customer\spool\*.evl]
NO_BINARY_CHECK = true
invalid_cause = archive

# This works perfectly in Linux
# unarchive_cmd = /opt/splunk/etc/apps/TA-customer/bin/decode_evl.py

# None of these work in Windows
# unarchive_cmd = C:\Progra~1\SplunkUniversalForwarder\etc\apps\TA-customer\bin\decode_evl.py
# unarchive_cmd = C:\System\Python27\python.exe C:\Progra~1\SplunkUniversalForwarder\etc\apps\TA-customer\bin\decode_evl.py
# unarchive_cmd = C:\\System\\Python27\\python.exe C:\Progra~1\\SplunkUniversalForwarder\\etc\\apps\\TA-customer\\bin\\decode_evl.py
unarchive_cmd = C:\System\Python27\python.exe C:\Progra~1\\SplunkUniversalForwarder\\etc\\apps\\TA-customer\\bin\\decode_evl.py

# unarchive_sourcetype = customer:evl:decoded
# priority = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be appreciated. This is driving me up the wall!!!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 05:39:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318155#M92761</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2017-07-18T05:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: unarchive_cmd for python script to decode binary file in Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318156#M92762</link>
      <description>&lt;P&gt;I think you're running into the difference between what Splunk Core (on your Linux system) can do versus what a universal forwarder (on your Windows system) can do.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318156#M92762</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-18T12:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: unarchive_cmd for python script to decode binary file in Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318157#M92763</link>
      <description>&lt;P&gt;It didn't on a Heavy Forwarder on Windows either sadly. I was only testing on a Universal Forwarder to try to debug the issue locally.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 12:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318157#M92763</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2017-07-18T12:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: unarchive_cmd for python script to decode binary file in Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318158#M92764</link>
      <description>&lt;P&gt;It may be a typo in the question, but I noticed the Windows file path has doubled backslashes everywhere except at the root.  Have you tried "C:\Progra~1\SplunkUniversalForwarder\etc\apps\TA-customer\bin\decode_evl.py"?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 13:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318158#M92764</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-18T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: unarchive_cmd for python script to decode binary file in Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318159#M92765</link>
      <description>&lt;P&gt;So i've used the example you provided and created a binx app using the following and mine works.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\program files\splunk\etc\apps\binx\spool\*]
disabled = 0
followTail = 0
host = myhost
index = binx
sourcetype = binx_binary
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::....binx]
invalid_cause = archive
unarchive_cmd = binx.pl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't have any sourcetype for binx_binary in my props.conf or NO_BINARY_CHECK&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-for-python-script-to-decode-binary-file-in-Windows/m-p/318159#M92765</guid>
      <dc:creator>jberwick_splunk</dc:creator>
      <dc:date>2020-09-29T15:02:50Z</dc:date>
    </item>
  </channel>
</rss>

