<?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: PCAP Analyzer for Splunk Not Working Properly - Windows in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376886#M45754</link>
    <description>&lt;P&gt;Sorry, I was not able to reply earlier.&lt;BR /&gt;
In your case to troubleshoot better I would concentrate on the 3 bat scripts located in C:\Program Files\Splunk\etc\apps\SplunkForPCAP\bin.&lt;/P&gt;

&lt;P&gt;Try to hard code the variables %programfiles%+%SPLUNK_HOME%.&lt;BR /&gt;
And then execute the script manually via cmd. &lt;/P&gt;

&lt;P&gt;Let me know what the script output says when you do it.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 08:23:17 GMT</pubDate>
    <dc:creator>rechteklebe</dc:creator>
    <dc:date>2019-05-23T08:23:17Z</dc:date>
    <item>
      <title>PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376876#M45744</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Unable to convert pcap file to a csv for indexing and analysis.&lt;/P&gt;

&lt;P&gt;I followed the instructions from Daniel; however, the pcap file is not converting to a csv. Therefore, the data is not being indexed.&lt;/P&gt;

&lt;P&gt;I gave Full rights to my ID (and all users on my laptop) to&lt;BR /&gt;
- Wireshark folder and subfolders (for access to tshark.exe)&lt;BR /&gt;
- SplunkForPCAP folder and subfolders (for access to ../SplunkForPCAP/bin/ folder)&lt;/P&gt;

&lt;P&gt;I set SPLUNK_HOME variable. I tried both as a system and as a public variable.&lt;/P&gt;

&lt;P&gt;Here is the procedure I followed&lt;BR /&gt;
- Drop a pcap in the folder I configured for Data Inputs (PCAPanalyzerTEST)&lt;BR /&gt;
- A few minutes later, the file is processed? and no longer in the PCAPanalyzerTEST folder&lt;BR /&gt;
- It is in the PCAPConverted folder&lt;BR /&gt;
- There is also a csv file in the PCAPcsv folder. However, it is zero bytes long.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;BR /&gt;
- Windows 8.1 Enterprise&lt;BR /&gt;
- Splunk Enterprise 7.2.5.1 - Single instance on laptop&lt;BR /&gt;
- Splunk Stream 7.1.3&lt;BR /&gt;
- Splunk PCAP Analyzer 4.1.1.0&lt;/P&gt;

&lt;P&gt;Here are the contents of the indexes.conf and input.conf files in the Splunk home folder \etc\apps\SplunkForPCAP\local.&lt;BR /&gt;
&lt;STRONG&gt;indexes.conf&lt;/STRONG&gt;&lt;BR /&gt;
&lt;EM&gt;[pcap]&lt;BR /&gt;
coldPath = $SPLUNK_DB\pcap\colddb&lt;BR /&gt;
enableDataIntegrityControl = 0&lt;BR /&gt;
enableTsidxReduction = 0&lt;BR /&gt;
homePath = $SPLUNK_DB\pcap\db&lt;BR /&gt;
maxTotalDataSizeMB = 512000&lt;BR /&gt;
thawedPath = $SPLUNK_DB\pcap\thaweddb&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
&lt;EM&gt;[pcap://PCAPanalyzerTEST]&lt;BR /&gt;
host = GCJPC&lt;BR /&gt;
index = pcap&lt;BR /&gt;
path = C:\Users\gcj\Desktop\PCAPanalyzerTEST&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance for any direction or advice you can offer.&lt;BR /&gt;
God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376876#M45744</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-09-30T00:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376877#M45745</link>
      <description>&lt;P&gt;Hi Genesius,&lt;/P&gt;

&lt;P&gt;from what I am reading there could be 2 things which can be the reason:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Try to set SPLUNK_HOME in the splunk-launch.conf and restart splunk&lt;/LI&gt;
&lt;LI&gt;Make sure Wireshark is installed in standard %programfiles% folders. Is it maybe installed in a customized folder?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Since the csv file (0bytes) is already created, something is wrong on the script which either points to tshark or missing Splunk_HOME, %programfiles% variable.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 05:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376877#M45745</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2019-05-20T05:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376878#M45746</link>
      <description>&lt;P&gt;Thanks @rechteklebe &lt;BR /&gt;
I tried both your suggestions and the csv file is still 0 bytes.&lt;BR /&gt;
Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376878#M45746</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2019-05-20T13:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376879#M45747</link>
      <description>&lt;P&gt;Can you check the following search:&lt;BR /&gt;
&lt;STRONG&gt;"index=_internal pcap2csv"&lt;/STRONG&gt;&lt;BR /&gt;
Check for the timestamp when the convert started.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376879#M45747</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2019-05-20T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376880#M45748</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84108"&gt;@rechteklebe&lt;/a&gt; &lt;BR /&gt;
Daniel,&lt;BR /&gt;
While searching through the events I was unable to find the start (since I have tried several times, even before I started this thread).&lt;/P&gt;

&lt;P&gt;However, I did find some events that may be more helpful in resolving this issue.&lt;BR /&gt;
Since the time I first install the app to the present, this type of event occurs every ~3 minutes (total 257 times).&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;-0400 ERROR ExecProcessor - message from ""C:\Program Files\Splunk\etc\apps\SplunkForPCAP\bin\pcap2csv.bat"" File Not Found&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;pcap2csv.bat&lt;/STRONG&gt; is located here &lt;STRONG&gt;C:\Program Files\Splunk\etc\apps\SplunkForPCAP\bin&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;@echo off&lt;BR /&gt;
REM Daniel Schwartz&lt;BR /&gt;
REM This script aims to check which tshark script to execute&lt;BR /&gt;
REM Version 1.2&lt;BR /&gt;
REM Created: December 2016&lt;BR /&gt;
REM Updated: 08.11.2017 - Monitored folders moved to app directory.&lt;BR /&gt;
for /f "delims=" %%i in ('"%programfiles%\Wireshark\tshark" -v ^| findstr /r (v') do set "TS=%%i"&lt;BR /&gt;
            set T=%TS:~9,2%&lt;BR /&gt;
            set H=%TS:~7,1%&lt;BR /&gt;
for /f "delims=" %%a in ('"%programfiles%\Wireshark\tshark" -v ^| findstr /r (v ^|findstr /r v2') do set "V2="%%a""&lt;BR /&gt;
IF NOT [%V2%] ==&lt;A href="https://community.splunk.com/CALL" title="%SPLUNK_HOME%\etc\apps\SplunkForPCAP\bin\pcap2csv_1_11_x_1_12_x.bat" target="_blank"&gt;&lt;/A&gt; ELSE (&lt;BR /&gt;
        IF %H% LSS 2 IF %T% LEQ 10 (&lt;BR /&gt;
        CALL "%SPLUNK_HOME%\etc\apps\SplunkForPCAP\bin\pcap2csv_1_10_x.bat"&lt;BR /&gt;
        ) ELSE (&lt;BR /&gt;
        CALL "%SPLUNK_HOME%\etc\apps\SplunkForPCAP\bin\pcap2csv_1_11_x_1_12_x.bat"&lt;BR /&gt;
        )&lt;BR /&gt;
    )&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376880#M45748</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-09-30T00:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376881#M45749</link>
      <description>&lt;P&gt;Actually you can ignore those errors. The script checks every 3minutes if there is new .pcap file in your folder of your choice. So if you don't put a new .pcap file in the folder, there is no file to be found. The new version of the app will exclude those errors. Not in this release though.&lt;/P&gt;

&lt;P&gt;Try to search: "index=_internal pcap2csv NOT "File Not Found""&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 14:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376881#M45749</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2019-05-20T14:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376882#M45750</link>
      <description>&lt;P&gt;@rechteklebe &lt;BR /&gt;
Daniel,&lt;BR /&gt;
That results with this.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;05-20-2019 11:04:33.219 -0400 ERROR ExecProcessor - Couldn't start command ""C:\Program Files\Splunk\etc\apps\SplunkForPCAP\bin\pcap2csv.sh"": FormatMessage was unable to decode error (193), (0xc1)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 15:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376882#M45750</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2019-05-20T15:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376883#M45751</link>
      <description>&lt;P&gt;Sorry, sh is also not of your interest.&lt;BR /&gt;
Try to search: "index=_internal pcap2csv NOT "File Not Found" NOT ".sh""&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 15:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376883#M45751</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2019-05-20T15:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376884#M45752</link>
      <description>&lt;P&gt;@rechteklebe &lt;BR /&gt;
Daniel,&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Sorry, sh is also not of your interest.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;No problem. I appreciate your help.&lt;/P&gt;

&lt;P&gt;The new search resulted in zero events.&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 15:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376884#M45752</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2019-05-20T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376885#M45753</link>
      <description>&lt;P&gt;@rechteklebe &lt;BR /&gt;
Daniel,&lt;BR /&gt;
I haven't heard back from you since your last reply.&lt;/P&gt;

&lt;P&gt;I've attempted to use tshark to create a CSV from the original PCAP file. Then use PCAP Analyzer to search and analyze the data. I used a tshark command I found here in this &lt;A href="https://www.sans.org/reading-room/whitepapers/detection/security-analytics-fun-splunk-packet-capture-file-pcap-34580"&gt;SANS paper&lt;/A&gt;. Unfortunately, the fields the author is extracting do not match with the fields your app is extracting.&lt;/P&gt;

&lt;P&gt;Thanks again for your help with this.&lt;/P&gt;

&lt;P&gt;God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376885#M45753</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2019-05-22T18:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: PCAP Analyzer for Splunk Not Working Properly - Windows</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376886#M45754</link>
      <description>&lt;P&gt;Sorry, I was not able to reply earlier.&lt;BR /&gt;
In your case to troubleshoot better I would concentrate on the 3 bat scripts located in C:\Program Files\Splunk\etc\apps\SplunkForPCAP\bin.&lt;/P&gt;

&lt;P&gt;Try to hard code the variables %programfiles%+%SPLUNK_HOME%.&lt;BR /&gt;
And then execute the script manually via cmd. &lt;/P&gt;

&lt;P&gt;Let me know what the script output says when you do it.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 08:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/PCAP-Analyzer-for-Splunk-Not-Working-Properly-Windows/m-p/376886#M45754</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2019-05-23T08:23:17Z</dc:date>
    </item>
  </channel>
</rss>

