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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...