forked from tmtsoftware/csw-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logstashShipper.conf
31 lines (27 loc) · 961 Bytes
/
logstashShipper.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Logstash config file for client machines that send log events to a central Redis server
# (Paths need to be customized)
# Inputs come from application log files in JSON format
input {
# Test "HCDExample2" (XXX replace with tcp input)
file {
type => "HCDExample2"
path => ["/Users/abrighto/work/tmt/csw/install/bin/hcdExample.log"]
start_position => beginning
tags => ["HCDExample2"]
codec => "json"
}
}
filter {
if [type] == "HCDExample2" {
grok {
#match => ["message", "Received %{NUMBER:count:int} from telemetry service in %{NUMBER:seconds:int} seconds \(%{NUMBER:rate:float} per second\)"]
match => ["message", "Coords: az: %{NUMBER:az:int}, el: %{NUMBER:el:int}"]
add_tag => [ "grokked" ]
}
}
}
# Output goes to Redis on the central log server (replace localhost with the server name or IP address)
output {
#stdout { }
redis { host => "localhost" data_type => "list" key => "logstash" }
}