Skip to content

Instantly share code, notes, and snippets.

@logpacker
logpacker / notify.ini
Created March 7, 2016 05:07
notify.ini
; Choose a way to notify about new logs
; Choose an interval for this and etc.
; providers can be comma-separated. Available: sendmail, slack, smtp, twilio
providers=sendmail
; interval in seconds
interval=3600
; log levels to include
levels=Fatal,Error
; tags to include. all by default
@logpacker
logpacker / kibana.conf.json
Created March 7, 2016 05:09
kibana.conf.json
[
{
"_id": "Server-Logs",
"_type": "dashboard",
"_source": {
"title": "Server Logs",
"hits": 0,
"description": "",
"panelsJSON": "[\n {\n \"col\": 1,\n \"id\": \"Server-Logs-Visualization\",\n \"row\": 1,\n \"size_x\": 9,\n \"size_y\": 2,\n \"type\": \"visualization\"\n },\n {\n \"col\": 10,\n \"id\": \"Log-Levels\",\n \"row\": 1,\n \"size_x\": 3,\n \"size_y\": 2,\n \"type\": \"visualization\"\n },\n {\n \"col\": 1,\n \"columns\": [\n \"TagName\",\n \"LogLevel\",\n \"Message\",\n \"Source\",\n \"AgentID\",\n \"FileSize\"\n ],\n \"id\": \"All-Logs\",\n \"row\": 3,\n \"size_x\": 12,\n \"size_y\": 3,\n \"sort\": [\n \"Time\",\n \"desc\"\n ],\n \"type\": \"search\"\n }\n]",
"version": 1,
@logpacker
logpacker / server.ini
Last active July 26, 2016 10:58
server.ini
; Server configuration. Agent doesn't need this config
; Also this config is used by REST API to find a proper connection to the Storage
; TCP server. Also it is a NetworkAPI endpoint, NetworkInfo will be returned by this endpoint if "cluster" string is sent
host=127.0.0.1
port=9999
; Comma-separated list of nodes in the cluster (no need to put current server here)
;cluster.nodes=
@logpacker
logpacker / api.ini
Created March 7, 2016 05:12
api.ini
; REST API configuration
; provider tells where data from LogPacker Server is stored
; Provider settings are located in server.ini file
provider=elasticsearch
; Providers to use if main provider is down
failover.providers=
; REST API host
host=127.0.0.1
; REST API port
port=9998
@logpacker
logpacker / services.ini
Last active July 22, 2016 09:21
services.ini
; This file contains built-in services for aggregation
; It can be changed by user/admin and it will be applied automatically
; You can add your new paths or even new services
; All services provided in this config, but not all services can be included to Agent, they can be disabled in Agent configuration
[mysql]
; Possible comma-separated logs locations
paths=/var/log/mysql.err,/var/log/mysql.log,/var/log/mysqld.log,/var/log/mysql/mysql.log,/var/lib/mysql/*.log,/var/lib/mysql/*.err,/var/lib/mysql/*/*.log,/var/log/mysql/mysql-slow.log,/var/log/mysql/slow.log,/usr/local/var/mysql/*.err
; Possible comma-separated configs locations
configs=/etc/my.cnf,/etc/mysql/my.cnf,/home/*/my.cnf,/root/my.cnf
@logpacker
logpacker / agent.ini
Last active June 23, 2016 09:41
agent.ini
; Configuration for Agent. Server doesn't need this file
; networkapi - networkAPI node. Agent must have only one
; Agent can retrieve all Cluster info from one endpoint only
networkapi=127.0.0.1:9999
; services - comma-separated list of services defined in services.ini
services=*
; security can be set to 1 and Agent will remove sensitive data from logs
security=0
; securityreplace - string for replacement
@logpacker
logpacker / logpacker_api.conf
Created May 17, 2016 09:25
logpacker_api.conf
[program:logpacker_api]
directory=/opt/logpacker
command=/opt/logpacker/logpacker_api
autostart=true
autorestart=true
startretries=10
stdout_logfile=/tmp/lpapi-stdout.log
stderr_logfile=/tmp/lpapi-stderr.log
@logpacker
logpacker / logpacker_daemon.conf
Created May 17, 2016 09:26
logpacker_daemon.conf
[program:logpacker_daemon]
directory=/opt/logpacker
command=/opt/logpacker/logpacker_daemon -a -s
autostart=true
autorestart=true
startretries=10
stdout_logfile=/tmp/lpdaemon-stdout.log
stderr_logfile=/tmp/lpdaemon-stderr.log
@logpacker
logpacker / logpackerwin_daemon.ini
Last active May 27, 2016 05:49
logpackerwin_daemon.ini
[logpackerwin]
startup=C:\"Program Files"\LogPacker\logpackerwin.exe -v -c C:\"Program Files"\LogPacker\configs\ -l C:\"Program Files"\LogPacker\daemon.log
@logpacker
logpacker / win.agent.ini
Last active May 27, 2016 05:50
win.agent.ini
[Agent]
; Configuration for Windows Agent
; Keys. Only one is necessary depends on Agent type (standalone or cloud)
keys.license=
keys.cloud=
; networkapi - networkAPI node. Agent must have only one
; Agent can retrieve all Cluster info from one endpoint only
networkapi=127.0.0.1:9999