Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

syslog collector #1117

Closed
vnitinv opened this issue Jul 30, 2016 · 5 comments
Closed

syslog collector #1117

vnitinv opened this issue Jul 30, 2016 · 5 comments

Comments

@vnitinv
Copy link

vnitinv commented Jul 30, 2016

Hi,

Can anyone point me if we already have a syslog collector. If not, can someone help me in developing the same.
this collector is supposed to listen on to a specific port on which different devices are publishing their syslogs.
syslog string example

Jul 31 03:44:11  linux-01 mgd[8806]: UI_COMMIT_COMPLETED: commit complete

If I can get a proto type code, I can extend it. Thanks in advance.

@vnitinv
Copy link
Author

vnitinv commented Jul 30, 2016

to add, I am able to collect syslog using this go module
https://github.com/mcuadros/go-syslog

log:

map[content:UI_CMDLINE_READ_LINE: User 'root', command 'configure ' tls_peer: hostname:bng-ui-vm-94 tag:mgd facility:23 severity:6 client:10.209.16.206:514 timestamp:2016-07-31 04:37:25 +0000 UTC priority:190]
map[priority:189 facility:23 severity:5 timestamp:2016-07-31 04:37:25 +0000 UTC hostname:bng-ui-vm-94 content:UI_DBASE_LOGIN_EVENT: User 'root' entering configuration mode tag:mgd client:10.209.16.206:514 tls_peer:]
map[tag:mgd content:UI_CMDLINE_READ_LINE: User 'root', command 'commit ' facility:23 timestamp:2016-07-31 04:38:00 +0000 UTC priority:190 severity:6 client:10.209.16.206:514 tls_peer: hostname:bng-ui-vm-94]

So I can use this module to collect syslog, Just need to know how to write collector using this so that snap can consume these datas.

@IRCody
Copy link
Contributor

IRCody commented Aug 2, 2016

@vnitinv: AFAIK there is not already a syslog collector. The plugin authoring documentation is a good resource for writing a plugin. You can also look at some examples from the plugin catalog to get an idea of what is involved. If you run into any trouble with the docs or writing the plugin please ping us back here or on slack.

@dishmael
Copy link
Contributor

dishmael commented Jan 4, 2017

Created a Syslog collector plugin. It is still under construction but appears stable in dev. Will work on documentation. Looking for feedback and suggestions.

@mbbroberg
Copy link
Contributor

@dishmael very cool. Your PR will close this issue so I updated it and I hope it helps @vnitinv too. Love seeing this contribution.

@vnitinv
Copy link
Author

vnitinv commented Jan 4, 2017

Thanks @dishmael

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants