[英]How to filter out message from a Python app, using Logstash and Shipper?
如何從Python應用程序登錄Stash? 這是我現在的托運人。
我正在使用Redis運送到索引器,然后將其轉到ES。 但是,從Python登錄並僅從您的應用獲取日志,而不是通過過濾器獲取其他sys日志消息的最佳實踐是什么? 至
# This is a comment. You should use comments to describe
# parts of your configuration.
input {
file {
path => "/var/log/syslog"
type => "syslog"
}
}
output {
redis { host => "<%=@redis_host%>" data_type => "list" key => "logstash" }
}
import syslog
syslog.syslog('omg...how does logstash work?')
舊問題,但未回答...
將python設置為登錄到自己的應用程序日志,並將其用作logstash輸入。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.