-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogstash.conf
45 lines (41 loc) · 918 Bytes
/
logstash.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
input {
tcp {
port => 50000
codec => json
}
}
filter {
json {
skip_on_invalid_json => true
source => "message"
target => "solana_data"
add_tag => [ "_message_json_parsed" ]
}
if [data] =~ /.*/ {
mutate {
remove_field => [ "data" ]
}
}
mutate {
remove_field => ["message"]
}
}
output {
http {
id => "parseable"
format => "json_batch"
codec => "json"
url => "http://parseable:8000/api/v1/ingest"
headers => {
"Authorization" => "Basic YWRtaW46YWRtaW4="
"x-p-stream" => "solanadevnet"
}
http_method => "post"
http_compression => true
automatic_retries => 5
retry_non_idempotent => true
connect_timeout => 10
keepalive => true
content_type => "application/json"
}
}