Skip to content

Example: SONUS Logs

Lorenzo Mangani edited this page Dec 17, 2019 · 36 revisions

SONUS Logs

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.

Dependencies

paStash needs to be installed before execution:

NPM

npm install -g pastash

Manually

# git clone https://github.com/sipcapture/paStash
# cd paStash/
# npm install

Recipe

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
        }
  }
}

Usage

./bin/pastash --config_file=/path/to/pastash_sonus.conf
Clone this wiki locally