<?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: Python script for McAfee epo in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105095#M1554</link>
    <description>&lt;P&gt;I have the same problem with Splunk 4.3.4 and ES 2.0 on the TA-mcafee, on a Windows platform. I am just setting this up, nothing is broken, but it's not working.&lt;/P&gt;

&lt;P&gt;I only have the Python that comes with Splunk at c:\program files\splunk\bin\python.exe&lt;/P&gt;

&lt;P&gt;I have modified mcafee_epo.bat to refer to the location of python.exe&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;@echo off&lt;BR /&gt;
"C:\Program Files\Splunk\bin\python.exe" "C:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.py"&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I have tried setting pythonhome and pythonpath environment variables to C:\program files\splunk\bin\ but this does not work.&lt;/P&gt;

&lt;P&gt;When I run Python -v I see the error:&lt;/P&gt;

&lt;P&gt;C:\Program Files\Splunk\bin&amp;gt;python -v&lt;/P&gt;

&lt;H1&gt;installing zipimport hook&lt;/H1&gt;

&lt;P&gt;import zipimport # builtin&lt;/P&gt;

&lt;H1&gt;installed zipimport hook&lt;/H1&gt;

&lt;P&gt;ImportError: No module named site&lt;/P&gt;

&lt;H1&gt;clear &lt;STRONG&gt;builtin&lt;/STRONG&gt;._&lt;/H1&gt;

&lt;H1&gt;clear sys.path&lt;/H1&gt;

&lt;H1&gt;clear sys.argv&lt;/H1&gt;

&lt;H1&gt;clear sys.ps1&lt;/H1&gt;

&lt;H1&gt;clear sys.ps2&lt;/H1&gt;

&lt;H1&gt;clear sys.exitfunc&lt;/H1&gt;

&lt;H1&gt;clear sys.exc_type&lt;/H1&gt;

&lt;H1&gt;clear sys.exc_value&lt;/H1&gt;

&lt;H1&gt;clear sys.exc_traceback&lt;/H1&gt;

&lt;H1&gt;clear sys.last_type&lt;/H1&gt;

&lt;H1&gt;clear sys.last_value&lt;/H1&gt;

&lt;H1&gt;clear sys.last_traceback&lt;/H1&gt;

&lt;H1&gt;clear sys.path_hooks&lt;/H1&gt;

&lt;H1&gt;clear sys.path_importer_cache&lt;/H1&gt;

&lt;H1&gt;clear sys.meta_path&lt;/H1&gt;

&lt;H1&gt;clear sys.flags&lt;/H1&gt;

&lt;H1&gt;clear sys.float_info&lt;/H1&gt;

&lt;H1&gt;restore sys.stdin&lt;/H1&gt;

&lt;H1&gt;restore sys.stdout&lt;/H1&gt;

&lt;H1&gt;restore sys.stderr&lt;/H1&gt;

&lt;H1&gt;cleanup &lt;STRONG&gt;main&lt;/STRONG&gt;&lt;/H1&gt;

&lt;H1&gt;cleanup[1] zipimport&lt;/H1&gt;

&lt;H1&gt;cleanup[1] signal&lt;/H1&gt;

&lt;H1&gt;cleanup[1] exceptions&lt;/H1&gt;

&lt;H1&gt;cleanup[1] _warnings&lt;/H1&gt;

&lt;H1&gt;cleanup sys&lt;/H1&gt;

&lt;H1&gt;cleanup &lt;STRONG&gt;builtin&lt;/STRONG&gt;&lt;/H1&gt;

&lt;H1&gt;cleanup ints: 6 unfreed ints&lt;/H1&gt;

&lt;H1&gt;cleanup floats&lt;/H1&gt;

&lt;P&gt;So, I think this is a Python problem and not a Splunk problem as such.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:46:00 GMT</pubDate>
    <dc:creator>alexoldman</dc:creator>
    <dc:date>2020-09-28T12:46:00Z</dc:date>
    <item>
      <title>Python script for McAfee epo</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105092#M1551</link>
      <description>&lt;P&gt;Hi To All Splunkers,&lt;/P&gt;

&lt;P&gt;I'm having problem on getting the data from McAfee epo to my splunk indexer server.&lt;BR /&gt;
previously this was working, it so happened one day it stop capturing the data.&lt;/P&gt;

&lt;P&gt;Below is the error message I found from the splunk log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-22-2012 00:42:34.868 +0800 ERROR ExecProcessor - message from ""D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.bat"" 'import site' failed; use -v for traceback
09-22-2012 00:42:34.868 +0800 ERROR ExecProcessor - message from ""D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.bat"" Traceback (most recent call last):
09-22-2012 00:42:34.868 +0800 ERROR ExecProcessor - message from ""D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.bat""   File "D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.py", line 2, in &amp;lt;module&amp;gt;
09-22-2012 00:42:34.868 +0800 ERROR ExecProcessor - message from ""D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.bat""     import pymssql
09-22-2012 00:42:34.868 +0800 ERROR ExecProcessor - message from ""D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.bat"" ImportError: No module named pymssql
09-22-2012 00:42:34.868 +0800 INFO  ExecProcessor - Ran script: "D:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.bat", took 190.0 milliseconds to run, 0 bytes read, exited with code 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advanced for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 02:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105092#M1551</guid>
      <dc:creator>allan_gacutan</dc:creator>
      <dc:date>2012-10-29T02:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for McAfee epo</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105093#M1552</link>
      <description>&lt;P&gt;Python modules/path on the host system have changed?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 04:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105093#M1552</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2012-10-29T04:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for McAfee epo</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105094#M1553</link>
      <description>&lt;P&gt;Hi Lucas,&lt;/P&gt;

&lt;P&gt;There was no changes made in the host system.&lt;BR /&gt;
Correct me if i'm wrong, the host system that you are referring too is the Indexer server right?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2012 04:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105094#M1553</guid>
      <dc:creator>allan_gacutan</dc:creator>
      <dc:date>2012-10-29T04:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for McAfee epo</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105095#M1554</link>
      <description>&lt;P&gt;I have the same problem with Splunk 4.3.4 and ES 2.0 on the TA-mcafee, on a Windows platform. I am just setting this up, nothing is broken, but it's not working.&lt;/P&gt;

&lt;P&gt;I only have the Python that comes with Splunk at c:\program files\splunk\bin\python.exe&lt;/P&gt;

&lt;P&gt;I have modified mcafee_epo.bat to refer to the location of python.exe&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;@echo off&lt;BR /&gt;
"C:\Program Files\Splunk\bin\python.exe" "C:\Program Files\Splunk\etc\apps\TA-mcafee\bin\mcafee_epo.py"&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I have tried setting pythonhome and pythonpath environment variables to C:\program files\splunk\bin\ but this does not work.&lt;/P&gt;

&lt;P&gt;When I run Python -v I see the error:&lt;/P&gt;

&lt;P&gt;C:\Program Files\Splunk\bin&amp;gt;python -v&lt;/P&gt;

&lt;H1&gt;installing zipimport hook&lt;/H1&gt;

&lt;P&gt;import zipimport # builtin&lt;/P&gt;

&lt;H1&gt;installed zipimport hook&lt;/H1&gt;

&lt;P&gt;ImportError: No module named site&lt;/P&gt;

&lt;H1&gt;clear &lt;STRONG&gt;builtin&lt;/STRONG&gt;._&lt;/H1&gt;

&lt;H1&gt;clear sys.path&lt;/H1&gt;

&lt;H1&gt;clear sys.argv&lt;/H1&gt;

&lt;H1&gt;clear sys.ps1&lt;/H1&gt;

&lt;H1&gt;clear sys.ps2&lt;/H1&gt;

&lt;H1&gt;clear sys.exitfunc&lt;/H1&gt;

&lt;H1&gt;clear sys.exc_type&lt;/H1&gt;

&lt;H1&gt;clear sys.exc_value&lt;/H1&gt;

&lt;H1&gt;clear sys.exc_traceback&lt;/H1&gt;

&lt;H1&gt;clear sys.last_type&lt;/H1&gt;

&lt;H1&gt;clear sys.last_value&lt;/H1&gt;

&lt;H1&gt;clear sys.last_traceback&lt;/H1&gt;

&lt;H1&gt;clear sys.path_hooks&lt;/H1&gt;

&lt;H1&gt;clear sys.path_importer_cache&lt;/H1&gt;

&lt;H1&gt;clear sys.meta_path&lt;/H1&gt;

&lt;H1&gt;clear sys.flags&lt;/H1&gt;

&lt;H1&gt;clear sys.float_info&lt;/H1&gt;

&lt;H1&gt;restore sys.stdin&lt;/H1&gt;

&lt;H1&gt;restore sys.stdout&lt;/H1&gt;

&lt;H1&gt;restore sys.stderr&lt;/H1&gt;

&lt;H1&gt;cleanup &lt;STRONG&gt;main&lt;/STRONG&gt;&lt;/H1&gt;

&lt;H1&gt;cleanup[1] zipimport&lt;/H1&gt;

&lt;H1&gt;cleanup[1] signal&lt;/H1&gt;

&lt;H1&gt;cleanup[1] exceptions&lt;/H1&gt;

&lt;H1&gt;cleanup[1] _warnings&lt;/H1&gt;

&lt;H1&gt;cleanup sys&lt;/H1&gt;

&lt;H1&gt;cleanup &lt;STRONG&gt;builtin&lt;/STRONG&gt;&lt;/H1&gt;

&lt;H1&gt;cleanup ints: 6 unfreed ints&lt;/H1&gt;

&lt;H1&gt;cleanup floats&lt;/H1&gt;

&lt;P&gt;So, I think this is a Python problem and not a Splunk problem as such.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105095#M1554</guid>
      <dc:creator>alexoldman</dc:creator>
      <dc:date>2020-09-28T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for McAfee epo</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105096#M1555</link>
      <description>&lt;P&gt;I am pleased to announce that we've just released an add-on that can help you with this (using DB Connect instead of Python): &lt;A href="http://apps.splunk.com/app/1819/"&gt;http://apps.splunk.com/app/1819/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 18:56:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-script-for-McAfee-epo/m-p/105096#M1555</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2014-07-08T18:56:01Z</dc:date>
    </item>
  </channel>
</rss>

