Vya*_*pal 5 elasticsearch logstash logstash-configuration elastic-stack
目前我正在开发一个应用程序,我需要从特定位置的文件中的特定数据创建文档.我已经设置了logstash管道配置.
这是目前的样子:
input{
file{
path => "D:\ELK_Info\logstashInput.log"
start_position => "beginning"
}
}
#Possible IF condition here in the filter
output {
#Possible IF condition here
http {
url => "http://localhost:9200/<index_name>/<type_name>"
http_method => "post"
format => "json"
}
}
Run Code Online (Sandbox Code Playgroud)
我想在调用API之前在输出中提供IF条件.条件应该是,"如果来自输入的数据包含单词'错误',则只进一步调用提到的http API."
我对如何做同样的想法?
归档时间: |
|
查看次数: |
71 次 |
最近记录: |