-
-
Notifications
You must be signed in to change notification settings - Fork 28
Example: SONUS Monitoring
Lorenzo Mangani edited this page Apr 13, 2024
·
4 revisions
This example recipe can ingest SBC monitoring profile messages (Extended SIP) and extract/encapsulate messages back to a HEP Capture Server such as HOMER or HEPIC for use cases where encrypted communication is unavailable off-the-wire for monitoring and troubleshooting.
- Ribbon/Sonus SBC with Monitoring Profile support
- NodeJS and paStash need to be installed before execution
# sudo npm install --unsafe-perm -g @pastash/pastash
-
sysloginput on port9514 -
sonusfilter to parse TRC events -
hepoutput to port9063
Save the following recipe to a readable location, ie: /path/to/pastash_sonus_monitoring.conf
input {
udp {
host => 0.0.0.0
port => 8002
}
}
filter {
regex {
regex => /srcIp: ([0-9.]+):([0-9]+)/
fields => [srcIp, srcPort]
}
regex {
regex => /destIP: ([0-9.]+):([0-9]+)/
fields => [dstIp, dstPort]
}
compute_field {
field => 'payload'
value => '#{message}'
}
}
output {
stdout {}
hep {
host => HEP-SERVER-ADDRESS
port => 9063
hep_id => 2233
hep_type => 1
hep_protocol => 6
hep_ip_family => 2
}
}
From your SBC management, browse to the Monitoring Profile from the All category

Add a Monitoring profile pointing at the IP:PORT configured for your HEP paStash instance.

- Save and Apply your settings
In order for the packets to retain the correct network addresses, enable the srcIp and dstIp headers


- Save and Apply your settings
In case of issues adding headers, please
disable/enablethe monitoring profile prior to it activating