const SyslogStasher = require('syslog-stasher');
const options = {
port: 514,
maxConnections: 10,
persistence: true,
mongoDb: {
uri: 'mongodb://localhost:27017',
name: 'logs-db',
logCollectionName: 'logs',
expirationDelayInDays: 3
}
};
const syslogServer = new SyslogStasher(options);
syslogServer.on('msg', (msg) => {
console.log('SYSLOG:', msg);
});
syslogServer.on('error', (err) => {
console.error('SYSLOG:', err);
});
syslogServer.listen(() => {
console.log(`Syslog server listening on ${options.port}...`);
});
-
Notifications
You must be signed in to change notification settings - Fork 0
GoX1337/syslog-stasher
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple Syslog RFC5424 server
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published