[英]Can I create a Logstash pipeline which takes both Apache web logs and queries from a Mysql database (based on the logs) as input?
我有Apache Web日志,其中一个字段为SessionID。 SessionIDS的相应用户名保存在数据库中。 我需要创建一个Logstash管道,该管道接收Web日志,并为每个日志添加与SessionID对应的用户名(保存在Mysql数据库中)。 有没有办法做到这一点?
您可以将日志作为管道的输入,而将MySQL数据库作为这些日志的扩展阶段。
您可以在此处阅读jdbc_static示例: https ://www.elastic.co/guide/en/logstash/current/lookup-enrichment.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.