Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要求是在 filebeat 中创建自定义索引。它在 Kubernetes 中作为守护进程运行。我需要不同命名空间的日志来拥有单独的索引。有什么方法可以实现这一点,因为 filebeat 不提供像日志存储这样的灵活性
通过在 filbeat.yml 中使用以下解决了此问题
转到 filebeat.tml 文件然后进行此更改(假设您已在 filebeat.yml 中提供了 Kubernetes 元数据作为输入
一旦你这样做重新启动 filbeat 然后下一个创建索引模式,这应该在你创建索引模式时列出。创建索引模式并检查它对我有用的日志。