-
-
Notifications
You must be signed in to change notification settings - Fork 28
Example: SONUS Logs
Lorenzo Mangani edited this page Dec 17, 2019
·
36 revisions
This example recipe parse, reassemble and convert Sonus SBC logs back into IP/SIP/HEP types, shipped to a HEP Capture Server such as HOMER, for use cases where encrypted communication is unavailable off-the-wire for monitoring and troubleshooting.
paStash needs to be installed before execution:
npm install -g pastash
# git clone https://github.com/sipcapture/paStash
# cd paStash/
# npm install
Save the following recipe to a readable location, ie: /path/to/pastash_sonus.conf
input {
file {
path => "/var/log/sonus-webui.log"
# start_index => 0
}
}
filter {
app_sonus {}
}
output {
if [rcinfo] != 'undefined' {
hep {
host => '127.0.0.1'
port => 9060
hep_id => 2222
hep_type => 1
}
}
}
./bin/pastash --config_file=/path/to/pastash_sonus.conf