All Apps and Add-ons

Can we capture localhost traffic by stream app ?

sunrise
Contributor

Hi Splunkers,

I want to capture local mysql packet from redmine by Splunk App for stream.
But we cannot capture it.
This server includes apache server of redmine, and I can capture it.
Why I cannot capture mysql packet ?
Is it because Splunk stream app cannot capture on loop back interface ?

Tags (2)
0 Karma
1 Solution

mdickey_splunk
Splunk Employee
Splunk Employee

Stream can capture traffic on the loopback interface, but this is disabled with the default configuration. You will need to edit the streamfwd.xml file to add the loopback device to the list of interfaces that it monitors. See example #1 in the docs for details.

View solution in original post

0 Karma

mdickey_splunk
Splunk Employee
Splunk Employee

Stream can capture traffic on the loopback interface, but this is disabled with the default configuration. You will need to edit the streamfwd.xml file to add the loopback device to the list of interfaces that it monitors. See example #1 in the docs for details.

0 Karma

sunrise
Contributor

Thank you, mdickey_splunk. I edited streamfwd.xml to listen the interface lo, but I cannot get sql streams.
SQL database is a MySQL in bitnami. Does any body have tried this ?
Thank you for your help.

0 Karma

mdickey_splunk
Splunk Employee
Splunk Employee

Have you tried using tcpdump -i lo to verify it's getting the mysql packets? The connection may be using a local socket versus network connection. See also this article on serverfault.

sunrise
Contributor

Thank you, mdickey_splunk. You're right. My Web server and SQL server connected by local socket.
So I changed this settings in the side of database and enabled to capture it.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...