Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Jul 24, 2024
1 parent 9717e1a commit 12c434a
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 43 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.temp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ RUN mkdir /usr/share/logstash/configs

COPY logstash.yml /usr/share/logstash/config/logstash.yml
COPY configs/temps.conf /usr/share/logstash/configs/temps.conf
COPY pipelines/temps.yml /usr/share/logstash/config/pipelines.yml
COPY configs/sidewalk.conf /usr/share/logstash/configs/sidewalk.conf
COPY pipelines/pips.yml /usr/share/logstash/config/pipelines.yml
36 changes: 0 additions & 36 deletions configs/servicex.conf

This file was deleted.

48 changes: 48 additions & 0 deletions configs/sidewalk.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
input {
http {
# host => "0.0.0.0"
# port => "80"
}
}

filter {
json {
source => "message"
}

if ("tPmAT5Ab3j7F9" not in [api_key]) {
drop { }
}

split {
field => "data"
}

mutate {
remove_field => [ "headers", "api_key", "host", "port", "message" ]
}
}

output {

stdout {
codec => rubydebug
}

if "_jsonparsefailure" in [tags] {

file {
path => "/var/log/logstash/_jsonparsefailure.txt"
}

} else {
elasticsearch {
hosts => "atlas-kibana.mwt2.org"
ssl => true
index => 'sidewalk'
user => "uc_logstash_indexer"
password => "${LOGSTASH_PWD}"
}
}

}
6 changes: 0 additions & 6 deletions configs/temps.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ filter {
drop { }
}

if ([data]) {
split {
field => "data"
}
}

mutate {
remove_field => [ "headers", "api_key", "host", "port", "message" ]
}
Expand Down
File renamed without changes.

0 comments on commit 12c434a

Please sign in to comment.