Splunk Stream

Installation and Configuration Manual

Acrobat logo Download manual as PDF


This documentation does not apply to the most recent version of Splunk Stream. For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Troubleshooting

Wire Data modular input stops working after upgrade

After manually deleting the application folders without stopping Splunk and installing or upgrading the app, the Wire Data modular input stops working. Some of the symptoms include:

  1. The Wire Data modular input configuration (splunk_app_stream location) is not present.
  2. Wire data is not present in the data input.
  3. The Wire Data configuration is present, but enabling streamfwd in the UI has no effect.


For symptoms 1 and 2 above, a restart of Splunk might fix the issue. Otherwise, follow this workaround:

  1. Stop Splunk.
    cd $SPLUNK_HOME/bin
    ./splunk stop
    
  2. In $SPLUNK_HOME/etc/apps, delete splunk_app_stream and Splunk_TA_Stream folders.
  3. Start Splunk.
    cd $SPLUNK_HOME/bin
    ./splunk start
    
  4. In Splunk Web, reinstall Splunk Stream.
  5. Restart Splunk from the UI.
  6. Open Settings > Data inputs.

  7. The Wire Data modular input now appears in the UI.

  8. Click Enable.

Stop Splunk before you delete either splunk_app_stream or Splunk_TA_Stream directories.

Wire Data modular input fails to start on Linux

  1. Check splunkd.log for the following error message:
    Unable to initialize modular input "streamfwd" defined inside the app "Splunk_TA_stream": 
    Introspecting scheme=streamfwd: script running failed (killed by signal 6: Aborted)
    
  2. Run the Splunk_TA_stream/linux_x86_64/bin/streamfwd --version command from the CLI and see if it results in the following output:
    /opt/splunkforwarder/etc/apps/Splunk_TA_stream/linux_x86_64/bin/streamfwd --version
    terminate called after throwing an instance of 'std::runtime_error'
      what():  locale::facet::_S_create_c_locale name not valid
    Aborted (core dumped)
    
  3. Use this workaround: Set the LC_ALL locale to either "en_US.UTF-8" or "C.UTF-8":
    export LC_ALL="en_US.UTF-8"
    

Stream forwarders do not send data

When upgrading to Splunk Stream 7.1.3 or later from a previous version, if stream forwarders do not send data after upgrade, you may see error messages.

WARN [139650313393920] (HTTPRequestSender.cpp:1485) stream.SplunkSenderHTTPEventCollector - (#7) TCP connection failed: Connection refused

To mitigate this, make sure that the stream forwarder is configured correctly. Change the HEC configuration as needed:

  1. Open the Distributed Forwarder Management in the Stream App.
  2. Select Install Stream Forwarders.
  3. Verify that the curl command is the one that was run on the Stream Forward App.
  4. Turn off the HEC Autoconfig option
  5. Manually add in the HEC (HF or Indexer) URL.

Forwarder fails to collect NetFlow data

Activating the configuration templates stops the collection of Netflow data on the forwarder. To mitigate this, try the following steps:

  1. Find the proper configuration for your NETFLOW stream in the relevant Splunk for Stream application KVStore named "streams"
  2. Extract that JSON configuration using a curl command from the KVStore.
  3. Extract the relevant configuration for NETFLOW from the JSON configuration.
  4. Save the configuration as a file and move it to your independent Stream forwarder under /opt/streamfwd/configs/es/
  5. Restart your forwarder.

How to create a pcap file

If you encounter an issue with your Splunk Stream deployment, the Stream support team might ask you to provide a pcap file for debugging purposes.

Create a pcap in Linux

Use tcpdump to create a pcap in Linux. tcpdump captures the first 96 bytes of data from a packet by default. To capture more data, use the -s<number> option to set the snaplen (snapshot length), where <number> is the number of bytes you want to capture. Use -s0 to run tcpdump with unlimited snaplen.

tcpdump –i eth0 –s0 –w filename.pcap

For example, to capture Oracle TNS traffic only on port 1521:

tcpdump –i eth0 –s0 –w file.pcap tcp port 1521

Note: To see a list of NIC names on your server, enter tcpdump –D.

Create a pcap in Windows

You can create a pcap in Windows using a utility such as Wireshark.

For instructions on creating a pcap file in Wireshark, see Saving captured packets.

Last modified on 03 March, 2022
PREVIOUS
FAQ
 

This documentation applies to the following versions of Splunk Stream: 7.3.0, 7.4.0, 8.0.0


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters