All Apps and Add-ons

Splunk App for Stream: streamfwd command not found error[SOLVED]

w0lverineNOP
Path Finder

I am trying to run Stream against pcap data. I am having trouble executing the streamfwd command. I am in $SPLUNK_HOME/etc/apps/Splunk_TA_stream/linux_86_64/bin

I run:
>>#streamfwd -r /data.cap

>>streamfwd: command not found

What do you think is causing this error? I have confirmed the following:

  • I ran the file command on streamfwd and the output is: setuid ELF 64 bit executable

  • The [streamfwd://streamfwd] stanza contains the correct location (URI) of your splunk_app_stream installation

  • setuid.sh is running as root

Any troubleshooting suggestions would be greatly appreciated. Another way of solving my problem of trying to index pcaps with stream is to run tcpreplay on a specific interface and have the streamfwd listening on the specific interface, this technique should work as well if all else fails correct?

UPDATE: ./streamfwd

Tags (2)
0 Karma
1 Solution

mdickey_splunk
Splunk Employee
Splunk Employee

You likely do not have the current working directory in your PATH. Try ./streamfwd -r /data.cap

View solution in original post

0 Karma

mdickey_splunk
Splunk Employee
Splunk Employee

You likely do not have the current working directory in your PATH. Try ./streamfwd -r /data.cap

0 Karma

w0lverineNOP
Path Finder

It is the correct path. Though I tried that and still the same error. If it was a working directory error wouldn't streamfwd command be recognized and I would receive a directory path not found error?

Could it actually be the command itself?

0 Karma

mdickey_splunk
Splunk Employee
Splunk Employee

Hmm.. does the streamfwd file have executable permissions set? chmod a+x streamfwd

0 Karma

w0lverineNOP
Path Finder

No change. And I also tried chmod 755 streamfwd

I tried to move my data.cap into the ../bin directory with streamfwd. It disappeared. Also I tried to cat streamfwd doesn't even recognize streamfwd is their (though I see it in the directory)
The file permissions for bin is the following:
-rwxr-xr-x

I am wondering could you run the streamfwd? I have reinstalled the app twice ... I might need to reinstall Splunk??

0 Karma

mdickey_splunk
Splunk Employee
Splunk Employee

Honestly, it sounds like you may need to reinstall your OS. Disappearing files and such means something is seriously corrupted.

0 Karma

w0lverineNOP
Path Finder

./streamfwd That was my problem.

Thank you for trying to help!!!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...