Skip to content

Example: GENESYS Logs

Lorenzo Mangani edited this page Aug 24, 2021 · 2 revisions

GENESYS Logs

This example recipe will convert Genesys Application logs to SIP/HEP-JSON format, shipped to a HEP Capture Server via output_hep module, and designed for cases where encrypted communication is unavailable off-the-wire.

Status
  • Experimental, Testers needed!

Installation

# npm install -g @pastash/pastash @pastash/filter_app_genesys

Recipe

input {
  file {
    path => "/path/to/genesys.log"
  }
}

filter {
  multiline {
    start_line_regex => /^(\@?)(\d{2}:\d{2}:\d{2}.\d{1,5})/
  }
  omit {
    blacklist => ['@timestamp','@version','path','host']
  }
  app_genesys {}
}

output {
  if [rcinfo] != 'undefined' {
        hep {
          host => '127.0.0.1'
          port => 9060
          hep_id => 2222
        }
  }
}

Usage

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