Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311987
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/site-modules/profile/templates/logstash/filter.conf.erb b/site-modules/profile/templates/logstash/filter.conf.erb
index 8d54473c..50080f48 100644
--- a/site-modules/profile/templates/logstash/filter.conf.erb
+++ b/site-modules/profile/templates/logstash/filter.conf.erb
@@ -1,53 +1,53 @@
filter {
if [fields][apache_log_type] == "access_log" {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}( %{NUMBER:duration_ms})?" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
mutate {
add_field => {
"[@metadata][target_index]" => "apache_logs-%{+YYYY.MM.dd}"
}
convert => {
"response" => "integer"
"duration_ms" => "integer"
"bytes" => "integer"
}
}
} else if "swh-worker@" in [systemd_unit] {
# Temporary rule to delete after complete migration to 7.15
mutate {
add_field => {
"[@metadata][target_index]" => "swh_workers-%{+YYYY.MM.dd}"
}
}
} else if "swh-worker@" in [systemd][unit] {
mutate {
add_field => {
"[@metadata][target_index]" => "swh_workers-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
} else {
- if [syslog][facility] !~ /^\d+$/ {
+ if [syslog][facility] =~ /[A-Za-z]+/ {
mutate {
rename => { "[syslog][facility]" => "[syslog][facility_name]" }
}
}
if [@metadata][version] {
mutate {
add_field => {
"[@metadata][target_index]" => "systemlogs-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
} else {
# Temporary rule to delete after complete migration to 7.15
mutate {
add_field => {
"[@metadata][target_index]" => "systemlogs-%{+YYYY.MM.dd}"
}
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jul 3, 10:38 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3353537
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment