Deployment Architecture

splunk tcp-raw on bound port

gdavid
Path Finder

i am curious if its possible to have splunk collect raw tcp data from a bound port?

ex: i have a web server running on port 80. can i have splunk also listen on port 80 and collect the raw tcp data? maybe eventually parse the data where generic web server logs wouldn't be enough.

is this possible? is there another way to do this? without mirroring the port on the network side?
doesn't have to be a web server or port 80, i use this example because its an easy test for me on my pc.

thanks

Gd.

Tags (1)
0 Karma

kristian_kolb
Ultra Champion

Splunk will not be able to bind to an already occupied port.

Perhaps you could get wireshark/tcpdump or a similar tool to capture traffic in and get Splunk to eat it. Perhaps you could get tcpdump to work as a long-running scripted input.. don't ask me to elaborate on that though, this is not something I've tried to do. 🙂


UPDATE:

This link might be of assistance:

http://splunk-base.splunk.com/answers/64113/scripted-input-stream-mode
http://docs.splunk.com/Documentation/Splunk/5.0.2/AdvancedDev/ScriptedInputsIntro

/k

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...