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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...