update config

This commit is contained in:
Wes Lambert
2020-03-11 12:13:11 +00:00
parent 70e78a0642
commit f9e4d218ec
21 changed files with 113 additions and 111 deletions

View File

@@ -9,182 +9,182 @@ input {
} }
file { file {
path => "/nsm/zeek/logs/current/conn*.log" path => "/nsm/zeek/logs/current/conn*.log"
type => "bro_conn" type => "zeek.conn"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/dce_rpc*.log" path => "/nsm/zeek/logs/current/dce_rpc*.log"
type => "bro_dce_rpc" type => "zeek.dce_rpc"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/dhcp*.log" path => "/nsm/zeek/logs/current/dhcp*.log"
type => "bro_dhcp" type => "zeek.dhcp"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/dnp3*.log" path => "/nsm/zeek/logs/current/dnp3*.log"
type => "bro_dnp3" type => "zeek.dnp3"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/dns*.log" path => "/nsm/zeek/logs/current/dns*.log"
type => "bro_dns" type => "zeek.dns"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/dpd*.log" path => "/nsm/zeek/logs/current/dpd*.log"
type => "bro_dpd" type => "zeek.dpd"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/files*.log" path => "/nsm/zeek/logs/current/files*.log"
type => "bro_files" type => "zeek.files"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/ftp*.log" path => "/nsm/zeek/logs/current/ftp*.log"
type => "bro_ftp" type => "zeek.ftp"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/http*.log" path => "/nsm/zeek/logs/current/http*.log"
type => "bro_http" type => "zeek.http"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/intel*.log" path => "/nsm/zeek/logs/current/intel*.log"
type => "bro_intel" type => "zeek.intel"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/irc*.log" path => "/nsm/zeek/logs/current/irc*.log"
type => "bro_irc" type => "zeek.irc"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/kerberos*.log" path => "/nsm/zeek/logs/current/kerberos*.log"
type => "bro_kerberos" type => "zeek.kerberos"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/modbus*.log" path => "/nsm/zeek/logs/current/modbus*.log"
type => "bro_modbus" type => "zeek.modbus"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/mysql*.log" path => "/nsm/zeek/logs/current/mysql*.log"
type => "bro_mysql" type => "zeek.mysql"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/notice*.log" path => "/nsm/zeek/logs/current/notice*.log"
type => "bro_notice" type => "zeek.notice"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/ntlm*.log" path => "/nsm/zeek/logs/current/ntlm*.log"
type => "bro_ntlm" type => "zeek.ntlm"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/pe*.log" path => "/nsm/zeek/logs/current/pe*.log"
type => "bro_pe" type => "zeek.pe"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/radius*.log" path => "/nsm/zeek/logs/current/radius*.log"
type => "bro_radius" type => "zeek.radius"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/rdp*.log" path => "/nsm/zeek/logs/current/rdp*.log"
type => "bro_rdp" type => "zeek.rdp"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/rfb*.log" path => "/nsm/zeek/logs/current/rfb*.log"
type => "bro_rfb" type => "zeek.rfb"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/signatures*.log" path => "/nsm/zeek/logs/current/signatures*.log"
type => "bro_signatures" type => "zeek.signatures"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/sip*.log" path => "/nsm/zeek/logs/current/sip*.log"
type => "bro_sip" type => "zeek.sip"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/smb_files*.log" path => "/nsm/zeek/logs/current/smb_files*.log"
type => "bro_smb_files" type => "zeek.smb_files"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/smb_mapping*.log" path => "/nsm/zeek/logs/current/smb_mapping*.log"
type => "bro_smb_mapping" type => "zeek.smb_mapping"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/smtp*.log" path => "/nsm/zeek/logs/current/smtp*.log"
type => "bro_smtp" type => "zeek.smtp"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/snmp*.log" path => "/nsm/zeek/logs/current/snmp*.log"
type => "bro_snmp" type => "zeek.snmp"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/socks*.log" path => "/nsm/zeek/logs/current/socks*.log"
type => "bro_socks" type => "zeek.socks"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/software*.log" path => "/nsm/zeek/logs/current/software*.log"
type => "bro_software" type => "zeek.software"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/ssh*.log" path => "/nsm/zeek/logs/current/ssh*.log"
type => "bro_ssh" type => "zeek.ssh"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/ssl*.log" path => "/nsm/zeek/logs/current/ssl*.log"
type => "bro_ssl" type => "zeek.ssl"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/syslog*.log" path => "/nsm/zeek/logs/current/syslog*.log"
type => "bro_syslog" type => "zeek.syslog"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/tunnel*.log" path => "/nsm/zeek/logs/current/tunnel*.log"
type => "bro_tunnels" type => "zeek.tunnels"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/weird*.log" path => "/nsm/zeek/logs/current/weird*.log"
type => "bro_weird" type => "zeek.weird"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/nsm/zeek/logs/current/x509*.log" path => "/nsm/zeek/logs/current/x509*.log"
type => "bro_x509" type => "zeek.x509"
tags => ["bro"] tags => ["zeek"]
} }
file { file {
path => "/wazuh/alerts/alerts.json" path => "/wazuh/alerts/alerts.json"
type => "ossec" type => "ossec"
} }
file { # file {
path => "/wazuh/archives/archives.json" # path => "/wazuh/archives/archives.json"
type => "ossec_archive" # type => "ossec_archive"
} # }
file { file {
path => "/osquery/logs/result.log" path => "/osquery/logs/result.log"
type => "osquery" type => "osquery"

View File

@@ -4,5 +4,6 @@
filter { filter {
mutate { mutate {
rename => [ "type", "event_type" ] rename => [ "type", "event_type" ]
remove_field => [ "host" ]
} }
} }

View File

@@ -10,21 +10,21 @@
filter { filter {
if "bro" in [tags] and "test_data" not in [tags] and "import" not in [tags] { if "zeek" in [tags] and "test_data" not in [tags] and "import" not in [tags] {
mutate { mutate {
##add_tag => [ "conf_file_9000"] ##add_tag => [ "conf_file_9000"]
} }
} }
} }
output { output {
if "bro" in [tags] and "test_data" not in [tags] and "import" not in [tags] { if "zeek" in [tags] and "test_data" not in [tags] and "import" not in [tags] {
# stdout { codec => rubydebug } # stdout { codec => rubydebug }
elasticsearch { elasticsearch {
pipeline => "%{event_type}" pipeline => "%{event_type}"
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-bro-%{+YYYY.MM.dd}" index => "so-zeek-%{+YYYY.MM.dd}"
template_name => "logstash-bro" template_name => "so-zeek"
template => "/logstash-bro-template.json" template => "/so-zeek-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -20,8 +20,8 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-switch-%{+YYYY.MM.dd}" index => "so-switch-%{+YYYY.MM.dd}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -18,9 +18,9 @@ output {
# stdout { codec => rubydebug } # stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-import-%{+YYYY.MM.dd}" index => "so-import-%{+YYYY.MM.dd}"
template_name => "logstash" template_name => "logstash"
template => "/logstash-template.json" template => "/so-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -20,8 +20,8 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-flow-%{+YYYY.MM.dd}" index => "so-flow-%{+YYYY.MM.dd}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,7 +20,7 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -19,7 +19,7 @@ output {
if [event_type] == "esxi" and "test_data" not in [tags] { if [event_type] == "esxi" and "test_data" not in [tags] {
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -19,7 +19,7 @@ output {
if [event_type] == "greensql" and "test_data" not in [tags] { if [event_type] == "greensql" and "test_data" not in [tags] {
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,7 +20,7 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,7 +20,7 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,9 +20,9 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-ids-%{+YYYY.MM.dd}" index => "so-ids-%{+YYYY.MM.dd}"
template_name => "logstash" template_name => "logstash"
template => "/logstash-template.json" template => "/so-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -19,9 +19,9 @@ output {
if "syslog" in [tags] and "test_data" not in [tags] { if "syslog" in [tags] and "test_data" not in [tags] {
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-syslog-%{+YYYY.MM.dd}" index => "so-syslog-%{+YYYY.MM.dd}"
template_name => "logstash" template_name => "logstash"
template => "/logstash-template.json" template => "/so-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -12,8 +12,8 @@ output {
if "osquery" in [tags] { if "osquery" in [tags] {
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-osquery-%{+YYYY.MM.dd}" index => "so-osquery-%{+YYYY.MM.dd}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,9 +20,9 @@ output {
# stdout { codec => rubydebug } # stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-firewall-%{+YYYY.MM.dd}" index => "so-firewall-%{+YYYY.MM.dd}"
template_name => "logstash" template_name => "logstash"
template => "/logstash-template.json" template => "/so-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -20,8 +20,8 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-windows-%{+YYYY.MM.dd}" index => "so-windows-%{+YYYY.MM.dd}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,8 +20,8 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-%{+YYYY.MM.dd}" index => "so-%{+YYYY.MM.dd}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -20,8 +20,8 @@ output {
#stdout { codec => rubydebug } #stdout { codec => rubydebug }
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-ids-%{+YYYY.MM.dd}" index => "so-ids-%{+YYYY.MM.dd}"
template => "/logstash-template.json" template => "/so-template.json"
} }
} }
} }

View File

@@ -16,9 +16,9 @@ output {
if "beat" in [tags] { if "beat" in [tags] {
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-beats-%{+YYYY.MM.dd}" index => "so-beats-%{+YYYY.MM.dd}"
template_name => "logstash-beats" template_name => "so-beats"
template => "/beats-template.json" template => "/so-beats-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -19,10 +19,11 @@ filter {
output { output {
if [event_type] =~ "ossec" or "ossec" in [tags] { if [event_type] =~ "ossec" or "ossec" in [tags] {
elasticsearch { elasticsearch {
pipeline => "%{event_type}"
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-ossec-%{+YYYY.MM.dd}" index => "so-ossec-%{+YYYY.MM.dd}"
template_name => "logstash-ossec" template_name => "so-ossec"
template => "/logstash-ossec-template.json" template => "/so-ossec-template.json"
template_overwrite => true template_overwrite => true
} }
} }

View File

@@ -20,9 +20,9 @@ output {
if [event_type] =~ "strelka" { if [event_type] =~ "strelka" {
elasticsearch { elasticsearch {
hosts => "{{ ES }}" hosts => "{{ ES }}"
index => "logstash-strelka-%{+YYYY.MM.dd}" index => "so-strelka-%{+YYYY.MM.dd}"
template_name => "logstash-strelka" template_name => "so-strelka"
template => "/logstash-strelka-template.json" template => "/so-strelka-template.json"
template_overwrite => true template_overwrite => true
} }
} }