<?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: Incapsula API script error in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349984#M42265</link>
    <description>&lt;P&gt;Where do you have your PROCESS_DIR in Settings.Config?&lt;/P&gt;

&lt;P&gt;I have mine going to&lt;/P&gt;

&lt;P&gt;PROCESS_DIR=/tmp/processed/&lt;/P&gt;

&lt;P&gt;Make sure that you are running it as a user with access to the directory. I created the directory since the script seems to have troubles creating directories for the python script to push to.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 14:05:04 GMT</pubDate>
    <dc:creator>mgast</dc:creator>
    <dc:date>2017-08-18T14:05:04Z</dc:date>
    <item>
      <title>Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349983#M42264</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Anyone who has used the Incapsula API script that is available from "&lt;A href="https://github.com/Incapsula/logs-downloader" target="_blank"&gt;https://github.com/Incapsula/logs-downloader&lt;/A&gt;"&lt;/P&gt;

&lt;P&gt;Have you had any issues getting it running, i'm not able to execute the script.&lt;/P&gt;

&lt;P&gt;I've followed the instructions, installed the required packages but still no luck. I've validated that the default directories are there and accessible. &lt;/P&gt;

&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "/incapsula_download/script/LogsDownloader.py", line 586, in &lt;BR /&gt;
    logsDownloader = LogsDownloader(path_to_config_folder, path_to_system_logs_folder, system_logs_level)&lt;BR /&gt;
  File "/incapsula_download/script/LogsDownloader.py", line 109, in &lt;STRONG&gt;init&lt;/STRONG&gt;&lt;BR /&gt;
    os.makedirs(self.config.PROCESS_DIR)&lt;BR /&gt;
  File "/usr/lib64/python2.6/os.py", line 157, in makedirs&lt;BR /&gt;
    mkdir(name, mode)&lt;BR /&gt;
OSError: [Errno 2] No such file or directory: ''&lt;/P&gt;

&lt;P&gt;Any help would be great. &lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349983#M42264</guid>
      <dc:creator>robwheeler</dc:creator>
      <dc:date>2020-09-29T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349984#M42265</link>
      <description>&lt;P&gt;Where do you have your PROCESS_DIR in Settings.Config?&lt;/P&gt;

&lt;P&gt;I have mine going to&lt;/P&gt;

&lt;P&gt;PROCESS_DIR=/tmp/processed/&lt;/P&gt;

&lt;P&gt;Make sure that you are running it as a user with access to the directory. I created the directory since the script seems to have troubles creating directories for the python script to push to.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349984#M42265</guid>
      <dc:creator>mgast</dc:creator>
      <dc:date>2017-08-18T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349985#M42266</link>
      <description>&lt;P&gt;Good spot, missed that one completely.&lt;/P&gt;

&lt;P&gt;I've executed the script now - &lt;/P&gt;

&lt;P&gt;No handlers could be found for logger "logsDownloader"&lt;BR /&gt;
script/LogsDownloader.py:130: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6&lt;BR /&gt;
  self.logger.error("Failed to downloading index file and starting to download all the log files in it - %s, %s", e.message, traceback.format_exc())&lt;/P&gt;

&lt;P&gt;Thats the current message, do I assume from this that it is doing something?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349985#M42266</guid>
      <dc:creator>robwheeler</dc:creator>
      <dc:date>2017-08-18T16:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349986#M42267</link>
      <description>&lt;P&gt;I run mine with. &lt;BR /&gt;
sudo nohup /etc/incapsula/logs/config/LogsDownloader.py &amp;amp;&lt;BR /&gt;
 then I tail the nohup.out and see what it is currently doing.&lt;/P&gt;

&lt;P&gt;it works fairly quick so if you look in your process dir you should see log files there to ingest into splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:34:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349986#M42267</guid>
      <dc:creator>mgast</dc:creator>
      <dc:date>2017-08-18T16:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349987#M42268</link>
      <description>&lt;P&gt;Final bit, did you have to set up the keys to get it to work or can it work without? &lt;/P&gt;

&lt;P&gt;I think all my config is not correct but i'm not seeing any logs. &lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349987#M42268</guid>
      <dc:creator>robwheeler</dc:creator>
      <dc:date>2017-08-18T16:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349988#M42269</link>
      <description>&lt;P&gt;I did change to keys but I have had the same config working without keys as well.&lt;BR /&gt;
 did you install M2Crypto and loggerglue?&lt;BR /&gt;
What version of linux are you installing this on?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 17:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349988#M42269</guid>
      <dc:creator>mgast</dc:creator>
      <dc:date>2017-08-18T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349989#M42270</link>
      <description>&lt;P&gt;Hey, yes installed both packages are mentioned. &lt;/P&gt;

&lt;P&gt;Running RHEL 6.8. &lt;/P&gt;

&lt;P&gt;Still not seeing any logs the last line seen when executing the script is &lt;/P&gt;

&lt;P&gt;self.logger.error("Failed to downloading index file and starting to download all the log files in it - %s, %s", e.message, traceback.format_exc())&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 12:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349989#M42270</guid>
      <dc:creator>robwheeler</dc:creator>
      <dc:date>2017-08-21T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349990#M42271</link>
      <description>&lt;P&gt;Were you able to get the logs downloaded?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 16:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349990#M42271</guid>
      <dc:creator>mgast</dc:creator>
      <dc:date>2017-10-12T16:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Incapsula API script error</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349991#M42272</link>
      <description>&lt;P&gt;I'm having trouble understanding how to integrate the incapsula with Splunk.&lt;BR /&gt;
How to use the logs-downloader script? Do I have to download and use splunk?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 21:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Incapsula-API-script-error/m-p/349991#M42272</guid>
      <dc:creator>jfeitosa_real</dc:creator>
      <dc:date>2018-10-11T21:38:03Z</dc:date>
    </item>
  </channel>
</rss>

