Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 1.49 KB

hep.md

File metadata and controls

72 lines (56 loc) · 1.49 KB

HEP/EEP output plugin

Status : stable

This plugin is used to send correlated data to a collector supporting the HEP encapsulation protocol. It accepts pass-though, dynamic or static settings depending on received data object.

Pass-Through

When handed an HEP rcinfo object, the module will simply ship the packet as-is:

{ payload: sip, rcinfo: rcinfo }

Static Example:

Config using url: output://hep://localhost:9060

Config using logstash format:

    input {
      file {
        path => "/var/log/kamailio/kamailio.log"
      }
    }

    filter {
          regex {
            regex => /ID=([^&]\\S*)/
            fields => [hep_cid]
          }
        }

    output {
      hep {
        host => localhost
        port => 9060
        hep_id => 2022
        hep_type => 100
      }
    }

Dynamic Example:

When the received data is already formatted in HEP JSON (rcinfo,payload) HEPIPE will dynamically manage types and

Config using logstash format:

    input {
      esl {}
    }

    filter {
          esl {}
        }

    output {
      hep {
        host => localhost
        port => 9060
      }
    }

Parameters:

  • host: ip of the HEP server.
  • port: port of the HEP server.
  • hep_id to change the HEP id of the stream. Default value: 2001.
  • hep_pass: to enable HEP authentication support. Default : none
  • hep_cid: to insert a (required) correaltion id, interpolated from string. Default : none.