Initial commit: add .gitignore and README

This commit is contained in:
defiQUG
2026-02-09 21:51:48 -08:00
commit d4ba3d45e5
174 changed files with 32756 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
input {
redis {
host => "${REDIS_HOST}"
port => "${REDIS_PORT}"
codec => "json"
data_type => "list"
key => "filebeat"
}
}

View File

@@ -0,0 +1,11 @@
input {
redis {
host => "${REDIS_HOST}"
port => "${REDIS_PORT}"
codec => "json"
data_type => "list"
type => "metricbeat"
key => "metricbeat"
}
}

View File

@@ -0,0 +1,11 @@
filter {
if [service_name] == "besu" {
json {
source => "message"
}
date {
match => [ "timestamp" , "ISO8601" ]
remove_field => [ "timestamp" ]
}
}
}

View File

@@ -0,0 +1,11 @@
filter {
if [service_name] == "logstash" {
json {
source => "message"
}
date {
match => [ "timeMillis", "UNIX_MS" ]
}
}
}

View File

@@ -0,0 +1,21 @@
filter {
if [service_name] == "quorum" {
grok {
match => { "message" => "%{GREEDYDATA:level}\[%{MONTHNUM:monthnum}\-%{DATA:monthday}\|%{TIME:time}\] %{GREEDYDATA:message}" }
overwrite => [ "message" ]
}
mutate {
add_field => {
"timestamp" => "%{monthnum} %{monthday} %{time}"
}
}
date {
match => [ "timestamp" , "MM dd HH:mm:ss.SSS", "MM dd HH:mm:ss.SSS", "ISO8601"]
remove_field => [ "timestamp" ]
}
mutate {
remove_field => [ "time" ,"month","monthday","year","timestamp"]
}
}
}

View File

@@ -0,0 +1,11 @@
filter {
if [service_name] == "tessera" {
json {
source => "message"
}
date {
match => [ "timestamp" , "ISO8601" ]
remove_field => [ "timestamp" ]
}
}
}

View File

@@ -0,0 +1,44 @@
output {
if [service_name] == "logstash" {
elasticsearch {
hosts => ["${ES_HOST}"]
index => "logstash-%{+YYYY.MM.dd}"
}
}
else if [service_name] == "besu" {
elasticsearch {
hosts => ["${ES_HOST}"]
index => "besu-%{+YYYY.MM.dd}"
}
}
else if [service_name] == "tessera" {
elasticsearch {
hosts => ["${ES_HOST}"]
index => "tessera-%{+YYYY.MM.dd}"
}
}
else if [service_name] == "quorum" {
elasticsearch {
hosts => ["${ES_HOST}"]
index => "quorum-%{+YYYY.MM.dd}"
}
}
else if [type] == "metricbeat" {
elasticsearch {
hosts => ["${ES_HOST}"]
index => "metricbeat-%{+YYYY.MM.dd}"
}
}
else {
elasticsearch {
hosts => ["${ES_HOST}"]
index => "unknown-%{+YYYY.MM.dd}"
}
}
}