我正在使用csv文件和logstash。我能够在过滤器中获取列值,但我无法在输出中获得这些值。我正在使用的配置文件是:
input {
file {
path => "/Users/B0079855/Documents/SERVERS/logstash-2.2.2/samples/products.csv"
# to read from the beginning of file
start_position => beginning
sincedb_path => "/dev/null"
}
}
filter {
csv {
columns => ["COL1", "COL2"]
}
}
output {
stdout { codec => rubydebug }
}
是否也可以在输出中获取列值?
答案 0 :(得分:0)
如果您拥有CSV过滤器,该怎么办?
filter{
csv {
fields => ["COL1", "COL2"]
separator => "," <---------add this
}
}