Skip to content

Example: SONUS Logs

Lorenzo Mangani edited this page Mar 24, 2020 · 36 revisions

RIBBON/SONUS Logs

This example recipe parse, reassemble and convert Ribbon/Sonus SBC (TRC) logs back into IP/SIP/HEP types, received as Syslog TCP and shipped 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.

Dependencies

  • Sonus SBC (ie: SBC 5400)
  • NodeJS 10.x+ and paStash need to be installed before execution

NPM

# sudo npm install --unsafe-perm -g @pastash/pastash @pastash/filter_app_sonuslog

PaStash Recipe

Save the following recipe to a readable location, ie: /path/to/pastash_sonus.conf

input {
  tcp {
    host => 0.0.0.0
    port => 9514
    type => syslog
  }
}

filter {
  app_sonuslog {}
}

output {
  stdout{}
  if [rcinfo] != 'undefined' {
        hep {
          host => '127.0.0.1'
          port => 9063
          hep_id => 2222
          hep_type => 1
        }
  }
}

Usage

pastash --config_file=/path/to/pastash_sonus.conf

SBC Configuration

Configure your Ribbon/Sonus SBC to emit TCP Syslog events towards our Receiver following this official guide

  • On the SBC main screen, browse to All > OAM > Event Log > Platform Rsyslog > Servers.
  • Edit the parameters for Server1 pointing to the IP:PORT of your paStash instance.

image

Clone this wiki locally