<?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 stream Netflow in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/533813#M7011</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm hoping someone is able to help me find out what's going on with Splunk Stream and Netflow because I'm tearing my hair out trying to get it working.&lt;/P&gt;&lt;P&gt;I have a separate indexer and search head and am trying to use the independent stream forwarder. The forwarder host also has UF installed but not Splunk_TA_stream, incidentally I tried getting it working with the Splunk_TA_stream app and was also seeing similar results.&lt;/P&gt;&lt;P&gt;SH configuration:&lt;/P&gt;&lt;P&gt;Splunk app for stream installed and configured as per &lt;A href="https://docs.splunk.com/Documentation/StreamApp/7.3.0/DeployStreamApp/UseStreamtoingestNetflowandIPFIXdata#Configure_search_heads" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/StreamApp/7.3.0/DeployStreamApp/UseStreamtoingestNetflowandIPFIXdata#Configure_search_heads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Indexer configuration:&lt;BR /&gt;$SPLUNK_HOME/etc/apps/splunk_httpinput/local/inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[http]
disabled = 0
port = 8088
dedicatedIoThreads = 8

[http://streamfwd]
description = Splunk Stream HEC
disabled = 0
index = main
token = &amp;lt;hec_token&amp;gt;
indexes = _internal,main&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[splunk@&amp;lt;indexer&amp;gt; ~]$ netstat -antup | grep 8088
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp     0   0 0.0.0.0:8088      0.0.0.0:*        LISTEN      11580/splunkd&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Independent forwarder setup:&lt;/P&gt;&lt;P&gt;/opt/streamfwd/local/inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[streamfwd://streamfwd]
splunk_stream_app_location = https://&amp;lt;search_head&amp;gt;:8000/en-us/custom/splunk_app_stream/
stream_forwarder_id =
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/opt/streamfwd/local/streamfwd.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[streamfwd://streamfwd]
authToken = &amp;lt;auth_token_generated_by_curl_config&amp;gt;

[streamfwd]
httpEventCollectorToken = &amp;lt;HEC_TOKEN&amp;gt;
processingThreads = 4

indexer.0.uri = https://&amp;lt;indexer&amp;gt;:8088

netflowReceiver.0.port = 9996
netflowReceiver.0.decoder = netflow
netflowReceiver.0.ip = &amp;lt;forwarder_ip&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run the search index=main sourcetype="stream:*" the only events I see are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; { [-]
   endtime: 2020-12-22T12:18:36Z
   event_name: netFlowOptions
   exporter_ip: &amp;lt;router_ip&amp;gt;
   exporter_time: 2020-Dec-22 12:18:36
   exporter_uptime: 4273621448
   netflow_version: 9
   observation_domain_id: 0
   seqnumber: 340894
   timestamp: 2020-12-22T12:18:36Z
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and running index=_internal sourcetype="stream:*" host="&amp;lt;forwarder&amp;gt;" gives me two sourcetypes, stream:log and stream:stats. stream:log gives me nothing of interest, just decode errors until the template is received, then these errors stop.&lt;/P&gt;&lt;P&gt;stream:stats shows me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; { [-]
   agentMode: 1
   ipAddress: &amp;lt;stream_forwarder_ip&amp;gt;
   netflow: { [-]
     NetflowDataHandlers: [ [-]
       { [-]
         NetflowDecoders: [ [-]
           { [-]
             name: Netflow
             processedRecords: 210991
           }
         ]
         droppedPackets: 0
         id: 0
       }
     ]
     NetflowReceivers: [ [-]
       { [-]
         id: 0
         recvdBytes: 8861500
         running: true
       }
     ]
     eventsIn: 210964
     eventsOut: 210964
     id: NetflowManager
     running: true
   }
   osName: Linux
   senders: [ [-]
     { [-]
       busyConnections: 0
       configTemplateName:
       connections: [ [-]
         { [-]
           endpoint: 0.0.0.0:0
           id: 0
           lastConnect: 2020-12-22T12:15:55.118285Z
           numErrors: 5
           numSent: 20
           queueSize: 0
           status: closed
           workStatus: idle
         }
         { [-]
           endpoint: 0.0.0.0:0
           id: 1
           lastConnect: 2020-12-22T12:14:54.193007Z
           numErrors: 4
           numSent: 27
           queueSize: 0
           status: closed
           workStatus: idle
         }
         { [-]
           endpoint: 0.0.0.0:0
           id: 2
           lastConnect: 2020-12-22T12:14:54.200473Z
           numErrors: 3
           numSent: 20
           queueSize: 0
           status: closed
           workStatus: idle
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
       ]
       dateLastUpdated: 1608637900306
       encrypted: true
       host: &amp;lt;search_head&amp;gt;
       id: &amp;lt;some_id&amp;gt;
       key:
       lastErrorCode: 0
       name:
       numBytes: 4367915
       numErrors: 41
       numStreams: 1
       openConnections: 0
       port: 8000
       requestsQueued: 0
       requestsSent: 229
       running: true
       streamForwarderGroups: [ [+]
       ]
       streamForwarderId: &amp;lt;forwarder_fqdn&amp;gt;
       streams: [ [-]
         { [-]
           bytes: 8016506
           bytes_in: 8016506
           bytes_out: 0
           delta_bytes: 339112
           delta_bytes_in: 339112
           delta_bytes_out: 0
           delta_events: 8924
           delta_raw_bytes: 5889905
           events: 210964
           id: TEST_NETFLOW
           raw_bytes: 130470120
           stats_only: 0
         }
       ]
     }
   ]
   sniffer: { [+]
   }
   systemType: x86_64
   versionNumber: 7.3.0
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which suggests that netflow receivers are working as expected.&lt;/P&gt;&lt;P&gt;Running a tcpdump on the receiver host I can see that I am receiving genuine netflow v9 which is readable using wireshark.&lt;/P&gt;&lt;P&gt;I've looked at splunkd.log on the indexer and I'm not seeing anything that relates to the stream forwarder. I'm at a loss where to look next. I have gone through the documentation countless times over the last few days to make sure I'm not missing anything.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 12:36:37 GMT</pubDate>
    <dc:creator>gopenshaw</dc:creator>
    <dc:date>2020-12-22T12:36:37Z</dc:date>
    <item>
      <title>Splunk stream Netflow</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/533813#M7011</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm hoping someone is able to help me find out what's going on with Splunk Stream and Netflow because I'm tearing my hair out trying to get it working.&lt;/P&gt;&lt;P&gt;I have a separate indexer and search head and am trying to use the independent stream forwarder. The forwarder host also has UF installed but not Splunk_TA_stream, incidentally I tried getting it working with the Splunk_TA_stream app and was also seeing similar results.&lt;/P&gt;&lt;P&gt;SH configuration:&lt;/P&gt;&lt;P&gt;Splunk app for stream installed and configured as per &lt;A href="https://docs.splunk.com/Documentation/StreamApp/7.3.0/DeployStreamApp/UseStreamtoingestNetflowandIPFIXdata#Configure_search_heads" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/StreamApp/7.3.0/DeployStreamApp/UseStreamtoingestNetflowandIPFIXdata#Configure_search_heads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Indexer configuration:&lt;BR /&gt;$SPLUNK_HOME/etc/apps/splunk_httpinput/local/inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[http]
disabled = 0
port = 8088
dedicatedIoThreads = 8

[http://streamfwd]
description = Splunk Stream HEC
disabled = 0
index = main
token = &amp;lt;hec_token&amp;gt;
indexes = _internal,main&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[splunk@&amp;lt;indexer&amp;gt; ~]$ netstat -antup | grep 8088
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp     0   0 0.0.0.0:8088      0.0.0.0:*        LISTEN      11580/splunkd&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Independent forwarder setup:&lt;/P&gt;&lt;P&gt;/opt/streamfwd/local/inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[streamfwd://streamfwd]
splunk_stream_app_location = https://&amp;lt;search_head&amp;gt;:8000/en-us/custom/splunk_app_stream/
stream_forwarder_id =
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/opt/streamfwd/local/streamfwd.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[streamfwd://streamfwd]
authToken = &amp;lt;auth_token_generated_by_curl_config&amp;gt;

[streamfwd]
httpEventCollectorToken = &amp;lt;HEC_TOKEN&amp;gt;
processingThreads = 4

indexer.0.uri = https://&amp;lt;indexer&amp;gt;:8088

netflowReceiver.0.port = 9996
netflowReceiver.0.decoder = netflow
netflowReceiver.0.ip = &amp;lt;forwarder_ip&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run the search index=main sourcetype="stream:*" the only events I see are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; { [-]
   endtime: 2020-12-22T12:18:36Z
   event_name: netFlowOptions
   exporter_ip: &amp;lt;router_ip&amp;gt;
   exporter_time: 2020-Dec-22 12:18:36
   exporter_uptime: 4273621448
   netflow_version: 9
   observation_domain_id: 0
   seqnumber: 340894
   timestamp: 2020-12-22T12:18:36Z
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and running index=_internal sourcetype="stream:*" host="&amp;lt;forwarder&amp;gt;" gives me two sourcetypes, stream:log and stream:stats. stream:log gives me nothing of interest, just decode errors until the template is received, then these errors stop.&lt;/P&gt;&lt;P&gt;stream:stats shows me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; { [-]
   agentMode: 1
   ipAddress: &amp;lt;stream_forwarder_ip&amp;gt;
   netflow: { [-]
     NetflowDataHandlers: [ [-]
       { [-]
         NetflowDecoders: [ [-]
           { [-]
             name: Netflow
             processedRecords: 210991
           }
         ]
         droppedPackets: 0
         id: 0
       }
     ]
     NetflowReceivers: [ [-]
       { [-]
         id: 0
         recvdBytes: 8861500
         running: true
       }
     ]
     eventsIn: 210964
     eventsOut: 210964
     id: NetflowManager
     running: true
   }
   osName: Linux
   senders: [ [-]
     { [-]
       busyConnections: 0
       configTemplateName:
       connections: [ [-]
         { [-]
           endpoint: 0.0.0.0:0
           id: 0
           lastConnect: 2020-12-22T12:15:55.118285Z
           numErrors: 5
           numSent: 20
           queueSize: 0
           status: closed
           workStatus: idle
         }
         { [-]
           endpoint: 0.0.0.0:0
           id: 1
           lastConnect: 2020-12-22T12:14:54.193007Z
           numErrors: 4
           numSent: 27
           queueSize: 0
           status: closed
           workStatus: idle
         }
         { [-]
           endpoint: 0.0.0.0:0
           id: 2
           lastConnect: 2020-12-22T12:14:54.200473Z
           numErrors: 3
           numSent: 20
           queueSize: 0
           status: closed
           workStatus: idle
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
         { [+]
         }
       ]
       dateLastUpdated: 1608637900306
       encrypted: true
       host: &amp;lt;search_head&amp;gt;
       id: &amp;lt;some_id&amp;gt;
       key:
       lastErrorCode: 0
       name:
       numBytes: 4367915
       numErrors: 41
       numStreams: 1
       openConnections: 0
       port: 8000
       requestsQueued: 0
       requestsSent: 229
       running: true
       streamForwarderGroups: [ [+]
       ]
       streamForwarderId: &amp;lt;forwarder_fqdn&amp;gt;
       streams: [ [-]
         { [-]
           bytes: 8016506
           bytes_in: 8016506
           bytes_out: 0
           delta_bytes: 339112
           delta_bytes_in: 339112
           delta_bytes_out: 0
           delta_events: 8924
           delta_raw_bytes: 5889905
           events: 210964
           id: TEST_NETFLOW
           raw_bytes: 130470120
           stats_only: 0
         }
       ]
     }
   ]
   sniffer: { [+]
   }
   systemType: x86_64
   versionNumber: 7.3.0
} &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which suggests that netflow receivers are working as expected.&lt;/P&gt;&lt;P&gt;Running a tcpdump on the receiver host I can see that I am receiving genuine netflow v9 which is readable using wireshark.&lt;/P&gt;&lt;P&gt;I've looked at splunkd.log on the indexer and I'm not seeing anything that relates to the stream forwarder. I'm at a loss where to look next. I have gone through the documentation countless times over the last few days to make sure I'm not missing anything.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 12:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/533813#M7011</guid>
      <dc:creator>gopenshaw</dc:creator>
      <dc:date>2020-12-22T12:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk stream Netflow</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/534937#M7051</link>
      <description>&lt;P&gt;It turns out that steam is actually configured correctly. The reason I was only seeing the heartbeats is because there is a delay of 5000+ seconds between event time and index time.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 10:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/534937#M7051</guid>
      <dc:creator>gopenshaw</dc:creator>
      <dc:date>2021-01-06T10:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk stream Netflow</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/577684#M10970</link>
      <description>&lt;P&gt;I have the same problem, how do I tune these times?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/577684#M10970</guid>
      <dc:creator>Hamidreza74</dc:creator>
      <dc:date>2021-12-07T18:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk stream Netflow</title>
      <link>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/577753#M10972</link>
      <description>&lt;P&gt;In my case ran a packet capture between the switches and the Splunk server. Using this Splunk article I calculated the times and Splunk was correct.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/StreamApp/7.3.0/DeployStreamApp/UseStreamtoingestNetflowandIPFIXdata#How_NetFlow_event_timestamps_are_calculated" target="_blank"&gt;https://docs.splunk.com/Documentation/StreamApp/7.3.0/DeployStreamApp/UseStreamtoingestNetflowandIPFIXdata#How_NetFlow_event_timestamps_are_calculated&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It appeared to be the switches misreporting the time. I was planning to follow it up with the switch vendor, but we went in a different direction so I don't have any further updates, sorry!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 09:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Splunk-stream-Netflow/m-p/577753#M10972</guid>
      <dc:creator>gopenshaw</dc:creator>
      <dc:date>2021-12-08T09:14:12Z</dc:date>
    </item>
  </channel>
</rss>

