Collect Digi Modems logs
This document explains how to ingest Digi Modems logs to Google Security Operations using the Bindplane agent.
Digi Modems are industrial cellular modems that generate syslog messages for login events, authentication attempts, and network connections. The parser extracts fields using grok patterns and maps them to the Unified Data Model (UDM).
Before you begin
Make sure you have the following prerequisites:
- A Google SecOps instance
- Windows Server 2016 or later, or Linux host with
systemd - Network connectivity between the Bindplane agent and the Digi modem
- If running behind a proxy, ensure firewall ports are open per the Bindplane agent requirements
- Privileged access to Digi Remote Manager or local Digi Modem web UI
Get Google SecOps ingestion authentication file
- Sign in to the Google SecOps console.
- Go to SIEM Settings > Collection Agents.
- Download the Ingestion Authentication File.
Save the file securely on the system where the Bindplane agent will be installed.
Get Google SecOps customer ID
- Sign in to the Google SecOps console.
- Go to SIEM Settings > Profile.
Copy and save the Customer ID from the Organization Details section.
Install the Bindplane agent
Install the Bindplane agent on your Windows or Linux operating system according to the following instructions.
Windows installation
- Open Command Prompt or PowerShell as an administrator.
Run the following command:
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quietWait for the installation to complete.
Verify the installation by running:
sc query observiq-otel-collectorThe service should show as RUNNING.
Linux installation
- Open a terminal with root or sudo privileges.
Run the following command:
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.shWait for the installation to complete.
Verify the installation by running:
sudo systemctl status observiq-otel-collectorThe service should show as active (running).
Additional installation resources
For additional installation options and troubleshooting, see the Bindplane agent installation guide.
Configure the Bindplane agent to ingest syslog and send to Google SecOps
Locate the configuration file
Linux:
sudo nano /etc/bindplane-agent/config.yamlWindows:
notepad "C:\Program Files\observIQ OpenTelemetry Collector\config.yaml"
Edit the configuration file
Replace the entire contents of
config.yamlwith the following configuration:receivers: udplog: listen_address: "0.0.0.0:514" exporters: chronicle/digi_modems: compression: gzip creds_file_path: '/etc/bindplane-agent/ingestion-auth.json' customer_id: '<customer_id>' endpoint: malachiteingestion-pa.googleapis.com log_type: DIGI_MODEMS raw_log_field: body service: pipelines: logs/digi_modems_to_chronicle: receivers: - udplog exporters: - chronicle/digi_modems
Configuration parameters
Replace the following placeholders:
Receiver configuration:
listen_address: IP address and port to listen on:0.0.0.0to listen on all interfaces (recommended)- Port
514is the standard syslog port (requires root on Linux; use1514for non-root)
Exporter configuration:
creds_file_path: Full path to ingestion authentication file:- Linux:
/etc/bindplane-agent/ingestion-auth.json - Windows:
C:\Program Files\observIQ OpenTelemetry Collector\ingestion-auth.json
- Linux:
customer_id: Customer ID copied from the Google SecOps consoleendpoint: Regional endpoint URL:- US:
malachiteingestion-pa.googleapis.com - Europe:
europe-malachiteingestion-pa.googleapis.com - Asia:
asia-southeast1-malachiteingestion-pa.googleapis.com - See Regional Endpoints for complete list
- US:
Save the configuration file
- After editing, save the file:
- Linux: Press
Ctrl+O, thenEnter, thenCtrl+X - Windows: Click File > Save
- Linux: Press
Restart the Bindplane agent to apply the changes
To restart the Bindplane agent in Linux, run the following command:
sudo systemctl restart observiq-otel-collectorVerify the service is running:
sudo systemctl status observiq-otel-collectorCheck logs for errors:
sudo journalctl -u observiq-otel-collector -f
To restart the Bindplane agent in Windows, choose one of the following options:
Command Prompt or PowerShell as administrator:
net stop observiq-otel-collector && net start observiq-otel-collectorServices console:
- Press
Win+R, typeservices.msc, and press Enter. - Locate observIQ OpenTelemetry Collector.
- Right-click and select Restart.
Verify the service is running:
sc query observiq-otel-collectorCheck logs for errors:
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
- Press
Configure the syslog server on Digi Modem
- Sign in to the Digi Remote Manager, or the local Digi Modem web UI.
- Access the device configuration with Remote Manager:
- Locate the device you want to configure syslog for.
- Click Device ID > Settings > Config.
- Access the device configuration with local Digi Modem web UI:
- Click System > Configuration > Device Configuration.
- Go to System > Log.
- Click to expand Server list.
- Click Add Server +.
- Provide the following configuration details:
- Server: Enter the Bindplane agent IP address.
- Select the event categories that will be sent to the server (all event categories are enabled by default).
- Syslog egress Port: Enter the Bindplane agent port number (default is
514). - Protocol: Select UDP.
- Click Apply.
Supported Digi modems sample logs
SYSLOG
{ "priority": 14, "timestamp": "Dec 28 17:27:45", "hostname": "host-device.router", "tag": "Eventlog", "message": "17:27:33, 28 Dec 2006,Login failure by Host: 10.0.0.25:23: CMD,Telnet" }SYSLOG
{ "priority": 14, "timestamp": "May 25 11:03:55", "hostname": "internal-srv-01", "tag": "Eventlog", "message": "11:03:55, 25 May 2023,Login failure by sanitized_user: WEB" }SYSLOG
{ "priority": 14, "timestamp": "Jun 11 23:58:26", "hostname": "internal-srv-01", "tag": "Eventlog", "message": "23:58:26, 11 Jun 2023,Login failure by GET /masked_path HTTP/1.0: CMD,Telnet" }SYSLOG
{ "priority": 14, "timestamp": "Jun 19 19:52:19", "hostname": "gateway-device-02", "tag": "Eventlog", "message": "19:52:18, 19 Jun 2023,WEB Login OK by internal_admin lvl 0" }
UDM mapping table
| Log field | UDM mapping | Logic |
|---|---|---|
| content | security_result.description | Directly mapped from the content field after initial grok parsing. |
| http_method | network.http.method | Extracted from the content field using a grok pattern. |
| http_version | network.application_protocol_version | Extracted from the content field using a grok pattern. |
| hostname | principal.hostname | Extracted from the log message using a grok pattern. |
| ip | target.ip | Extracted from the content field using a grok pattern. |
| port | target.port | Extracted from the content field using a grok pattern and converted to an integer. |
| proto | network.application_protocol | Extracted from the content field using a grok pattern. |
| ts | metadata.event_timestamp | Extracted from the log message using a grok pattern and converted to a timestamp. |
| type | login_type_label.value | Extracted from the content field using a grok pattern. |
| extensions.auth.type | Set to MACHINE by parser logic. |
|
| login_type_label.key | Set to Login type by parser logic. |
|
| metadata.event_type | Determined by the presence of specific fields like ip or user and set accordingly to NETWORK_CONNECTION or USER_LOGIN. |
|
| metadata.log_type | Set to DIGI_MODEMS by parser logic. |
|
| metadata.product_event_type | Extracted from the product_type field in the log message. |
|
| metadata.product_name | Set to DIGI_MODEMS by parser logic. |
|
| metadata.vendor_name | Set to DIGI_MODEMS by parser logic. |
|
| security_result.action | Determined by the presence of Login OK or Login failure in the message and set to ALLOW or BLOCK respectively. |
|
| user | target.user.userid | Extracted from the content field using a grok pattern. |
Need more help? Get answers from Community members and Google SecOps professionals.