Difference between revisions of "Wireshark: Capture SQL Traffic"
Onnowpurbo (talk | contribs) (New page: 'm trying to identify the source of some ill-timed connection resets. I'm trying to use Wireshark to capture the traffic that goes between the application server and database server. How d...) |
Onnowpurbo (talk | contribs) |
||
Line 3: | Line 3: | ||
shareimprove this question | shareimprove this question | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Wireshark has display filters and capture filters. The capture filter captures only certain packets, resulting in a small capture file. Capture filters are set in Capture Options (ctrl-K). An example to capture SQL Server traffic would be: | Wireshark has display filters and capture filters. The capture filter captures only certain packets, resulting in a small capture file. Capture filters are set in Capture Options (ctrl-K). An example to capture SQL Server traffic would be: | ||
− | host <sql-server-ip> and port <sql-server-port> | + | host <sql-server-ip> and port <sql-server-port> |
A display filter is set in the toolbar. A display filter does not reduce the size of the capture. You can change a display filter while the capture is running. An example display filter: | A display filter is set in the toolbar. A display filter does not reduce the size of the capture. You can change a display filter while the capture is running. An example display filter: | ||
Line 22: | Line 14: | ||
The default SQL Server port is 1433. | The default SQL Server port is 1433. | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 09:58, 18 April 2017
'm trying to identify the source of some ill-timed connection resets. I'm trying to use Wireshark to capture the traffic that goes between the application server and database server. How do I set up a filter for this in Wireshark? sql-server filter wireshark shareimprove this question
Wireshark has display filters and capture filters. The capture filter captures only certain packets, resulting in a small capture file. Capture filters are set in Capture Options (ctrl-K). An example to capture SQL Server traffic would be:
host <sql-server-ip> and port <sql-server-port>
A display filter is set in the toolbar. A display filter does not reduce the size of the capture. You can change a display filter while the capture is running. An example display filter:
ip.addr == <sql-server-ip> && tcp.port == <sql-server-port>
The default SQL Server port is 1433.
You can use only tds to identify the traffic between SQL Server's client and server, this fill filter a lot of noise packet.
Or you can append the tds with the and or && operator after other filters if you want to filter more specific traffic.