Taking wireshark logs with the CAS Gateway

Capturing network traffic using Wireshark is a common troubleshooting technique when diagnosing communication or protocol issues involving a CAS Gateway. By enabling detailed debug logging on the gateway and collecting both BACnet and Syslog traffic, engineers can correlate application-level events with network-level behavior.

This article describes a repeatable process for configuring a CAS Gateway to emit detailed log messages and for capturing those messages using Wireshark on a separate computer. The resulting packet capture files can then be reviewed locally or shared with Chipkin support for further analysis.

The steps below assume that the CAS Gateway is already operational on the network and that the user has administrative access to both the gateway and the capture workstation.

Configuring Debug Logging on the CAS Gateway

The first step is to configure the CAS Gateway to generate detailed debug output and forward it using Syslog. This ensures that internal gateway events are visible alongside captured network traffic.

  1. Log in to the CAS Gateway web interface.
  2. Navigate to the System Actions page at /bin/system/.
  3. Under the debug logging section, change the logging level from IMPORTANT (10) to ALL (100).
  4. Verify that Log to SysLog (UDP: 514) is enabled. This is the default setting.
  5. Click the Save button to apply the changes.
  6. Click Generate Configuration File to download the current gateway configuration.

The configuration file should be saved, as it may be required later when reviewing the captured logs or when submitting data for support.

CAS Gateway debug logging configuration

Installing and Configuring Wireshark

Wireshark is a free and widely used packet capture tool that can record and analyze network traffic in real time. It is used here to capture both BACnet/IP packets and Syslog messages emitted by the CAS Gateway.

  1. Download and install Wireshark from https://www.wireshark.org/ on a local computer.
  2. Launch Wireshark and click the Capture Options button.
  3. Set the Capture Filter to:
    port 47808 || port 514
  4. Specify a folder path where capture files will be stored, for example:
    C:\temp\wireshark_logs\
  5. Enable Use multiple files and Next file every, then set the size to 20 megabytes.

These settings ensure that BACnet/IP traffic (default UDP port 47808) and Syslog traffic (UDP port 514) are captured while preventing individual capture files from becoming excessively large.

Wireshark capture options

Capturing and Reviewing Traffic

Once capture options are configured, begin the packet capture and allow it to run while the issue is reproduced.

  1. Click the Start button in the Wireshark Capture Options dialog.
  2. Verify that the main Wireshark window begins to populate with BACnet and Syslog packets.
  3. Reproduce the issue involving the CAS Gateway. This may require extended capture time if the problem occurs infrequently.
  4. Stop the capture once sufficient data has been collected.

The resulting capture files should include both protocol traffic and gateway-generated Syslog messages, allowing events to be correlated by time.

Wireshark packet capture

Network Topology Considerations

Depending on the network layout, capturing all relevant traffic may require additional hardware. In some cases, an Ethernet hub (not a switch or router) may be required to observe all packets sent to and from the CAS Gateway.

More information on this topic is available here: Hubs vs. Switches when using Wireshark .

After completing the capture, provide Chipkin support with an archive of the Wireshark capture files along with the CAS Gateway configuration file for further analysis.

Network setup for packet capture

Contact Us

Contact us via phone (+1 866-383-1657) or leave a detailed message below for sales, support, or any other needs

*Required Field
*Required Field
I'd like to receive the newsletter. *Check email for confirmation.
*Required Field
8:00am - 12:00pm 12:00pm - 5:00pm
Message Sent Successfully