filebeat客户端传输cisco日志到elasticsearch

一、安装相应版本的filebeat

wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.5.2-x86_64.rpm rpm -ivh filebeat-7.5.2-x86_64.rpm

二、cisco端的配置让老哥去做(手动滑稽)

三、配置文件

# 1、修改filebeat的总体配置 vim /etc/filebeat/filebeat.yml output.elasticsearch: hosts: ["<es_url>"] # 自定义索引 indices: - index: "netsec_asa_%{+yyyy.MM.dd}" when.equals: fileset.name: "asa" - index: "netsec_ios_%{+yyyy.MM.dd}" when.equals: fileset.name: "ios" # 配置es的登陆账号和密码 username: "elastic" password: "<password>" setup.kibana: host: "<kibana_url>" # 2、启用cisco模块并修改cisco模块的配置 filebeat modules enable cisco vim /etc/filebeat/modules.d/cisco.yml # Module: cisco # Docs: https://www.elastic.co/guide/en/beats/filebeat/7.5/filebeat-module-cisco.html - module: cisco asa: enabled: true # Set which input to use between syslog (default) or file. var.input: syslog # The interface to listen to UDP based syslog traffic. Defaults to # localhost. Set to 0.0.0.0 to bind to all available interfaces. var.syslog_host: 0.0.0.0 # The UDP port to listen for syslog traffic. Defaults to 9001. var.syslog_port: 9001 # Set the log level from 1 (alerts only) to 7 (include all messages). # Messages with a log level higher than the specified will be dropped. # See https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs-sev-level.html var.log_level: 7 ftd: enabled: true # Set which input to use between syslog (default) or file. #var.input: syslog # The interface to listen to UDP based syslog traffic. Defaults to # localhost. Set to 0.0.0.0 to bind to all available interfaces. #var.syslog_host: localhost # The UDP port to listen for syslog traffic. Defaults to 9003. #var.syslog_port: 9003 # Set the log level from 1 (alerts only) to 7 (include all messages). # Messages with a log level higher than the specified will be dropped. # See https://www.cisco.com/c/en/us/td/docs/security/firepower/Syslogs/b_fptd_syslog_guide/syslogs-sev-level.html #var.log_level: 7 ios: enabled: true # Set which input to use between syslog (default) or file. #var.input: syslog # The interface to listen to UDP based syslog traffic. Defaults to # localhost. Set to 0.0.0.0 to bind to all available interfaces. var.syslog_host: 0.0.0.0 # The UDP port to listen for syslog traffic. Defaults to 9002. var.syslog_port: 9002 # Set custom paths for the log files when using file input. If left empty, # Filebeat will choose the paths depending on your OS. #var.paths # 3、启动filebeat systemctl start filebeat

__EOF__

本文作者带着泥土
本文链接https://www.cnblogs.com/obitoma/p/14046788.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   带着泥土  阅读(645)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

了解更多