This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Logstash 日志管道配置(占位)
|
||||
input {
|
||||
file {
|
||||
path => "/data/apps/logs/app.log"
|
||||
start_position => "beginning"
|
||||
sincedb_path => "/dev/null"
|
||||
codec => json
|
||||
}
|
||||
}
|
||||
|
||||
filter {
|
||||
date {
|
||||
match => ["timestamp", "ISO8601"]
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
elasticsearch {
|
||||
hosts => ["elasticsearch:9200"]
|
||||
index => "tornado-elevue-%{+YYYY.MM.dd}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user