Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions deploy/kubernetes/chart/files/logstash/10-stats.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ filter {
if [user_agent] =~ "^kube-probe" {
drop { }
}
# Drop HEAD requests
if [method] == "HEAD" {
drop { }
}
# Only consider file downloads and OPeNDAP accesses
if [request] !~ "^/thredds/(fileServer|dodsC)" {
drop { }
}
# Drop extraneous OPeNDAP requests
if [request] =~ "^/thredds/dodsC/([\?].*)\.(html|nc|dds|das)" {
drop { }
}
# Replace the logstash timestamp with the timestamp from the request
date {
match => ["request_time", "dd/MMM/yyyy:HH:mm:ss Z"]
Expand Down
2 changes: 1 addition & 1 deletion images/logstash/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY logstash.repo /etc/yum.repos.d/logstash.repo
# So SHA1 needs to be enabled to install it.
RUN update-crypto-policies --set DEFAULT:SHA1
RUN dnf makecache && \
dnf install -y logstash-7.10.0 && \
dnf install -y logstash && \
dnf clean all && \
chown -R $ESGF_UID:$ESGF_GID /usr/share/logstash

Expand Down