<?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 Splunk Add-on for Netflow in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164136#M15448</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have installed Splunk App for NetFlow and ran the configure.sh script.  But the flowfix.sh script seems to be a little off.&lt;BR /&gt;
    #!/bin/bash&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Listener command for nfcapd 1 - v5 - -b IPV4 - 9955
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-1-v5--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9955 -bfi

# Listener command for nfcapd 2 - v9 - -b IPv4 - 9939
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-2-v9--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9939 -bfi

# Listener command for nfcapd 3 - v9 - -b IPv4 - 9949
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-3-v9--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9949 -bfi

# Listener command for nfcapd 4 - IPFIX - -b IPv4 - 9910
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-4-IPFIX--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9910 -bfi

# This part converts the binary flows to csv/ascii
if [[ `find /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-binary/* | grep nfcapd.2` ]]; then

FILES=`ls /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-binary/*/nfcapd.2*`

for FILE in ${FILES[*]}
do
/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfdump -qr "$FILE" -o csv &amp;gt;&amp;gt; /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-ascii/nfdump-csv_`date +"%Y%m%d%H%M%S"`.log &amp;amp;&amp;amp; rm "$FILE"
done;
fi

# Cleanup files older than -1
find /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-ascii -type f -mtime +-1 -exec rm -f {} \;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Listener lines seem to be incomplete and when the script runs all I get is unexpected end of file.  To me it looks like all he if statements in the listeners are incomplete.  Is this a bug that the configure script did not setup properly?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@splk-gns-fwd-01 bin]# ./flowfix.sh
./flowfix.sh: line 28: syntax error: unexpected end of file
[root@splk-gns-fwd-01 bin]#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated.  &lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
ed&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2015 21:08:53 GMT</pubDate>
    <dc:creator>edwardrose</dc:creator>
    <dc:date>2015-06-15T21:08:53Z</dc:date>
    <item>
      <title>Splunk Add-on for Netflow</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164136#M15448</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have installed Splunk App for NetFlow and ran the configure.sh script.  But the flowfix.sh script seems to be a little off.&lt;BR /&gt;
    #!/bin/bash&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Listener command for nfcapd 1 - v5 - -b IPV4 - 9955
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-1-v5--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9955 -bfi

# Listener command for nfcapd 2 - v9 - -b IPv4 - 9939
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-2-v9--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9939 -bfi

# Listener command for nfcapd 3 - v9 - -b IPv4 - 9949
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-3-v9--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9949 -bfi

# Listener command for nfcapd 4 - IPFIX - -b IPv4 - 9910
if [ ! -f /opt/splunk/etc/apps/Splunk_TA_flowfix/bin/nfcapd-4-IPFIX--b/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfcapd -p 9910 -bfi

# This part converts the binary flows to csv/ascii
if [[ `find /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-binary/* | grep nfcapd.2` ]]; then

FILES=`ls /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-binary/*/nfcapd.2*`

for FILE in ${FILES[*]}
do
/opt/splunk/etc/apps/Splunk_TA_flowfix/bin/Linux_x86_64_core2/nfdump -qr "$FILE" -o csv &amp;gt;&amp;gt; /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-ascii/nfdump-csv_`date +"%Y%m%d%H%M%S"`.log &amp;amp;&amp;amp; rm "$FILE"
done;
fi

# Cleanup files older than -1
find /opt/splunk/etc/apps/Splunk_TA_flowfix/nfdump-ascii -type f -mtime +-1 -exec rm -f {} \;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Listener lines seem to be incomplete and when the script runs all I get is unexpected end of file.  To me it looks like all he if statements in the listeners are incomplete.  Is this a bug that the configure script did not setup properly?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@splk-gns-fwd-01 bin]# ./flowfix.sh
./flowfix.sh: line 28: syntax error: unexpected end of file
[root@splk-gns-fwd-01 bin]#
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated.  &lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
ed&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164136#M15448</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2015-06-15T21:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Netflow</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164137#M15449</link>
      <description>&lt;P&gt;what shell does your Linux use? Just verified that this works fine on bash in CentOS 6.4.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164137#M15449</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2015-06-15T21:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Netflow</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164138#M15450</link>
      <description>&lt;P&gt;CentOs 6.5 bash&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 22:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164138#M15450</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2015-06-15T22:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Netflow</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164139#M15451</link>
      <description>&lt;P&gt;Probably worth a support ticket so we can diagnose properly; that seems like a shell problem, but bash is what we test with and there've been no other complaints against this heavily used Add-on.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2015 02:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164139#M15451</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2015-07-12T02:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Netflow</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164140#M15452</link>
      <description>&lt;P&gt;Splunk ticket was created and it appears that the script is sort of unclear when it asks IPv4, IPv6 or all.  I guess you are suppose to enter an IP address or leave blank for all.  Once I left the answer blank for all the script completed correctly.  I was mistakenly entering IPv4 instead of an actual IP address&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 17:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Netflow/m-p/164140#M15452</guid>
      <dc:creator>edwardrose</dc:creator>
      <dc:date>2015-07-14T17:51:43Z</dc:date>
    </item>
  </channel>
</rss>

