-
-
Notifications
You must be signed in to change notification settings - Fork 245
Examples: hepipe.js
Lorenzo Mangani edited this page Mar 25, 2016
·
4 revisions
HEPipe.js is a sipcapture tool to monitor files, extract and ship arbitrary rows (logs, events, cdrs, etc) with correlation_id to a HEP server such as HOMER or PCAPTURE using HEP Type 100
- Status: Experimental
git clone https://github.com/sipcapture/hepipe.js cd hepipe.js npm install
Edit application parameters for HEP and LOGS monitoring in config.js
Each LOGS item defines a log path and a (regex) rule to match/extract the proper correlation ID from rows
Let's take the following Kamailio logline containing a Call-ID (ID=) as example:
Nov 19 22:05:36 ams2 /usr/sbin/kamailio[1067]: INFO: Sending reply, fs='udp:127.0.0.1:5060' - [email protected]
- Regex Filter:
ID=([^&]\\S*)
- Correlation ID:
[email protected]
Resulting config.js:
var config = {
// Address and Port of your HEP Server
HEP_SERVER: 'homer.ip.addr',
HEP_PORT: 9060,
HEP_ID: '2001',
HEP_AUTH: 'null',
LOGS: [
{
tag : 'ngcp', // unique id
host : '127.0.0.1', // host address
pattern: 'ID=([^&]\\S*)', // escaped regex
path : '/var/log/syslog' // path to logfile
}
]
};
npm run forever
For more information visit the hepipe.js repository.
(C) 2008-2023 QXIP BV
HEP/EEP Agent Examples:
- CaptAgent
- HEPlify
- Kamailio
- OpenSIPS
- FreeSwitch
- Asterisk
- sipgrep
- sngrep
- RTPEngine
- RTPProxy
- Oracle ACME SBC
- Sonus SBC
- Avaya SM
- Sansay SBC
HEP/EEP Agent Examples (LOGS):
HEP/EEP Proxy:
Extra Examples:
- Custom JSON Stats
- RTCP-XR Stats
- GEO IP Maps
- Janus/Meetecho-WebRTC
- Cloudshark Export
- Encrypted HEP Tunneling
- SNMP Monitoring
- FreeSWITCH ESL Monitoring
- Kazoo Monitoring
- Speech-to-Text-to-HEP
Extra Resources: