All Projects → pierredavidbelanger → Raftman

pierredavidbelanger / Raftman

Licence: mit
A syslog server with integrated full text search via a JSON API and Web UI

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Raftman

Go Logger
一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.
Stars: ✭ 152 (+484.62%)
Mutual labels:  log, syslog
Sagan
** README ** This repo has MOVED to https://github.com/quadrantsec/sagan
Stars: ✭ 236 (+807.69%)
Mutual labels:  log, syslog
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+426.92%)
Mutual labels:  log, syslog
Nim Morelogging
Logging library for Nim
Stars: ✭ 29 (+11.54%)
Mutual labels:  log, syslog
nginx-prometheus
Turn Nginx logs into Prometheus metrics
Stars: ✭ 29 (+11.54%)
Mutual labels:  log, syslog
LogESP
Open Source SIEM (Security Information and Event Management system).
Stars: ✭ 162 (+523.08%)
Mutual labels:  log, syslog
Tlog
Terminal I/O logger
Stars: ✭ 170 (+553.85%)
Mutual labels:  log, syslog
Console
OS X console application.
Stars: ✭ 298 (+1046.15%)
Mutual labels:  log, syslog
siemstress
Very basic CLI SIEM (Security Information and Event Management system).
Stars: ✭ 24 (-7.69%)
Mutual labels:  log, syslog
aixlog
Header-only C++ logging library
Stars: ✭ 95 (+265.38%)
Mutual labels:  log, syslog
WatsonSyslogServer
C# Syslog Server
Stars: ✭ 18 (-30.77%)
Mutual labels:  log, syslog
Flog
🎩 A fake log generator for common log formats
Stars: ✭ 531 (+1942.31%)
Mutual labels:  log, syslog
Build
TeaWeb-可视化的Web代理服务。DEMO: http://teaos.cn:7777
Stars: ✭ 656 (+2423.08%)
Mutual labels:  log
Logging Helpers
Basic template helpers for printing messages out to the console. Useful for debugging context in templates. Should work with any template engine.
Stars: ✭ 5 (-80.77%)
Mutual labels:  log
Uavstack
UAVStack Open Source All in One Repository
Stars: ✭ 648 (+2392.31%)
Mutual labels:  log
Logparser
A toolkit for automated log parsing [ICSE'19, TDSC'18, DSN'16]
Stars: ✭ 620 (+2284.62%)
Mutual labels:  log
Hzdtf.foundation.framework
基础框架系统,支持.NET和.NET Core平台,语言:C#,DB支持MySql和SqlServer,主要功能有抽象持久化、服务层,将业务基本的增删改查抽离复用;提供代码生成器从DB生成实体、持久化、服务以及MVC控制器,每层依赖接口,并需要在客户端将对应实现层用Autofac程序集依赖注入,用AOP提供日志跟踪、事务、模型验证等。对Autofac、Redis、RabbitMQ封装扩展;DB访问提供自动主从访问,Redis客户端分区。特别适合管理系统。
Stars: ✭ 22 (-15.38%)
Mutual labels:  log
Demo Scene
👾Scripts and samples to support Confluent Demos and Talks. ⚠️Might be rough around the edges ;-) 👉For automated tutorials and QA'd code, see https://github.com/confluentinc/examples/
Stars: ✭ 806 (+3000%)
Mutual labels:  syslog
Groonga
An embeddable fulltext search engine. Groonga is the successor project to Senna.
Stars: ✭ 617 (+2273.08%)
Mutual labels:  full-text-search
Manticoresearch
Database for search
Stars: ✭ 610 (+2246.15%)
Mutual labels:  full-text-search

raftman

raftman

A syslog server with integrated full text search via a JSON API and Web UI.

getting started

store logs

To get started quickly, just run the containerized version of raftman:

sudo docker run --rm --name raftman \
    -v /tmp:/var/lib/raftman \
    -p 514:514/udp \
    -p 5514:5514 \
    -p 8181:8181 \
    -p 8282:8282 \
    pierredavidbelanger/raftman

This will start raftman with all default options. It listen on port 514 (UDP) and 5514 (TCP) on the host for incoming RFC5424 syslog packets and store them into an SQLite database stored in /tmp/logs.db on the host. It also exposes the JSON API on http://localhost:8181/api/ and the Web UI on http://localhost:8282/.

send logs

Time to fill our database. The easyest way is to just start logspout and tell it to point to raftman's syslog port:

docker run --rm --name logspout \
    -v /var/run/docker.sock:/var/run/docker.sock:ro \
    --link raftman \
    gliderlabs/logspout \
        syslog://raftman:514

This last container will grab other containers output lines and send them as syslog packet to the configured syslog server (ie: our linked raftman container).

generate logs

Now, we also need to generate some output. This will do the job for now:

docker run --rm --name test \
    alpine \
    echo 'Can you see me'

visualise logs

Then we can visualize our logs:

with the raftman API:

curl http://localhost:8181/api/list \
    -d '{"Limit": 100, "Message": "see"}'

or pop the Web UI at http://localhost:8282/

configuration

All raftman configuration options are set as arguments in the command line.

For example, here is the what the command line would looks like if we set all the default values explicitly:

raftman \
    -backend sqlite:///var/lib/raftman/logs.db?insertQueueSize=512&queryQueueSize=16&timeout=5s&batchSize=32&retention=INF \
    -frontend syslog+udp://:514?format=RFC5424&queueSize=512&timeout=0s \
    -frontend syslog+tcp://:5514?format=RFC5424&queueSize=512&timeout=0s \
    -frontend api+http://:8181/api/ \
    -frontend ui+http://:8282/
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].