elasticsearch Windows操作系统中的sincedb_路径
我在学麋鹿。我读了教程。本教程使用Linux操作系统,而我使用的是Windows操作系统 来自教程elasticsearch Windows操作系统中的sincedb_路径,elasticsearch,logstash,elk,elasticsearch,Logstash,Elk,我在学麋鹿。我读了教程。本教程使用Linux操作系统,而我使用的是Windows操作系统 来自教程 input { file { path => "/home/zenitk/hackernews.csv" start_position => "beginning" sincedb_path => "/dev/null" } } filter { csv { c
input {
file {
path => "/home/zenitk/hackernews.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
columns => [
"id","by","score","time","time_ts","title",
"url","text","deleted","dead","descendants","author"
]
separator => ","
skip_header => true
}
date {
match => ["time_ts", "yyyy-MM-dd HH:mm:ss z"]
target => "post_date"
remove_field => "time_ts"
}
mutate {
rename => {
"dead" => "is_dead"
"id" => "[@metadata][id]"
}
convert => {
"is_dead" => "boolean"
}
remove_field => [
"@timestamp",
"host",
"message",
"@version",
"path",
"descendants",
"time"
"id"
]
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "hackernews_import"
document_id => "%{[@metadata][id]}"
}
stdout {}
}
在Windows操作系统中,与
sincedb\u path=>“/dev/null”
等效的是什么?Windows等效的是
sincedb_path => "NUL"
三个字母,大写。这将防止内存中的sincedb在重新启动时被持久化。始终使用内存中的sincedb