FreeBSD/jails/config/elk/logstash.conf

49 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-04-20 12:34:43 -07:00
# Copyright (c) 2018-2020, diyIT.org
2020-02-25 11:28:31 -08:00
# All rights reserved.
#
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
# https://diyit.org/license/
#
#
input {
beats {
port => 5044
ssl => false
2021-02-13 11:38:38 -08:00
#https://discuss.elastic.co/t/problem-with-cipher-in-beat-input/67841
2020-02-25 11:28:31 -08:00
ssl_key => '/mnt/certs/diyprivkeyr.pem'
ssl_certificate => '/mnt/certs/diyfullchain.pem'
ssl_certificate_authorities => ["/mnt/certs/cacert.pem"]
ssl_verify_mode => "force_peer"
}
}
2021-04-20 12:34:43 -07:00
filter {
if "suricata" in [tags] {
json {
source => "message"
}
date {
match => [ "timestamp", "ISO8601" ]
}
if ![geoip] and [src_ip] !~ /^(10\.|192\.168\.)/ {
geoip {
add_tag => [ "GeoIP" ]
source => "src_ip"
}
}
}
}
2020-02-25 11:28:31 -08:00
output {
elasticsearch {
ssl => true
ssl_certificate_verification => true
cacert => '/mnt/certs/cacert.pem'
2021-02-13 11:38:38 -08:00
hosts => ["https://elk.diyit.org:9200"]
2020-02-25 11:28:31 -08:00
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
user => "elastic"
password => "${es_pwd}"
}
}