mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-01-09 22:56:57 +07:00
31 lines
399 B
Plaintext
31 lines
399 B
Plaintext
input {
|
|
file {
|
|
path => "/home/nginx.log"
|
|
start_position => "beginning"
|
|
sincedb_path => "/dev/null"
|
|
}
|
|
}
|
|
|
|
filter {
|
|
json {
|
|
source => "message"
|
|
}
|
|
geoip {
|
|
source => "remote_ip"
|
|
}
|
|
useragent {
|
|
source => "agent"
|
|
target => "useragent"
|
|
}
|
|
}
|
|
|
|
output {
|
|
elasticsearch {
|
|
hosts => ["http://es:9200"]
|
|
index => "nginx"
|
|
}
|
|
stdout {
|
|
codec => rubydebug
|
|
}
|
|
}
|