This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################## | |
# DEFAULTS FOR TESTING | |
########################################## | |
# | |
# First we set our defaults for our config tests | |
# We have been testing with logstash monolithic 1.1.9 | |
# When testing the default is "-v" but you can try "make indexer LSFLAGS=--v" etc... | |
# We are using monolithic, unless we can work with the flatjar then use "make indexer LSTYPE=flatjar " | |
# | |
LSVERS=1.1.9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input{ | |
file { | |
type => "custom_logger" | |
format => plain | |
path => "/tmp/debug_ls_input" | |
tags => [ "debug","no_alert" ] | |
} | |
tcp { | |
type => "custom_logger" | |
format => "plain" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- NB '%{@type}' must be the same as table_name | |
-- create database logstash; | |
CREATE TABLE table_name ( | |
table_name_id int(8) unsigned NOT NULL AUTO_INCREMENT, | |
logtime datetime DEFAULT NULL, | |
tags varchar(255) DEFAULT NULL, | |
message varchar(255) DEFAULT NULL, | |
PRIMARY KEY (table_name_id) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output { | |
# <SNIP> other outputs <SNIP> | |
# | |
# Ping me if anything is about to explode, or if any important massage pass by | |
# | |
xmpp { | |
tags => 'warn_me' | |
host => "ejabberd.example.io" | |
message => "time='%{@timestamp}', host='%{@source_host}', tags='%{@tags}',path='%{@source_path}', type='%{@type}', field='%{@fields}' message='%{@message}'," |
NewerOlder