页面“分类:Ops”与“Filebeat nginx log”之间的差异
(页面间的差异)
跳到导航
跳到搜索
第1行: | 第1行: | ||
− | + | [[category:ops]] | |
− | |||
− | https://www. | + | =ins and config= |
+ | ==Download and install Filebeat== | ||
+ | <pre> | ||
+ | |||
+ | |||
+ | curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.12.0-amd64.deb | ||
+ | sudo dpkg -i filebeat-7.12.0-amd64.deb | ||
+ | </pre> | ||
+ | ==Edit the configuration == | ||
+ | <pre> | ||
+ | Modify /etc/filebeat/filebeat.yml to set the connection information: | ||
+ | |||
+ | output.elasticsearch: | ||
+ | hosts: ["<es_url>"] | ||
+ | username: "elastic" | ||
+ | password: "<password>" | ||
+ | setup.kibana: | ||
+ | host: "<kibana_url>" | ||
+ | |||
+ | Where <password> is the password of the elastic user, <es_url> is the URL of Elasticsearch, and <kibana_url> is the URL of Kibana. | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | ==Enable and configure the nginx module == | ||
+ | |||
+ | <pre> | ||
+ | sudo filebeat modules enable nginx | ||
+ | |||
+ | Modify the settings in the /etc/filebeat/modules.d/nginx.yml file. | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | == Start Filebeat== | ||
+ | |||
+ | <pre> | ||
+ | The setup command loads the Kibana dashboards. If the dashboards are already set up, omit this command. | ||
+ | |||
+ | sudo filebeat setup | ||
+ | sudo service filebeat start | ||
+ | </pre> | ||
+ | |||
+ | == Module status== | ||
+ | <pre> | ||
+ | Module status 右边的 check data 按键 -- > Nginx logs dashboard | ||
+ | |||
+ | </pre> | ||
+ | systemctl daemon-reload | ||
+ | |||
+ | =see also= | ||
+ | |||
+ | https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-nginx.html | ||
+ | |||
+ | |||
+ | [https://www.cnblogs.com/kuku0223/p/8317965.html ELK--filebeat nginx模块] |
2021年4月27日 (二) 09:25的版本
目录
ins and config
Download and install Filebeat
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.12.0-amd64.deb sudo dpkg -i filebeat-7.12.0-amd64.deb
Edit the configuration
Modify /etc/filebeat/filebeat.yml to set the connection information: output.elasticsearch: hosts: ["<es_url>"] username: "elastic" password: "<password>" setup.kibana: host: "<kibana_url>" Where <password> is the password of the elastic user, <es_url> is the URL of Elasticsearch, and <kibana_url> is the URL of Kibana.
Enable and configure the nginx module
sudo filebeat modules enable nginx Modify the settings in the /etc/filebeat/modules.d/nginx.yml file.
Start Filebeat
The setup command loads the Kibana dashboards. If the dashboards are already set up, omit this command. sudo filebeat setup sudo service filebeat start
Module status
Module status 右边的 check data 按键 -- > Nginx logs dashboard
systemctl daemon-reload
see also
https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-nginx.html
分类“Ops”中的页面
以下200个页面属于本分类,共294个页面。
(上一页)(下一页)A
C
- Cannot access Input/output error
- Cenos搭建ceph
- Centos7 debian firewalld防火墙基础
- CentOS7 install and configuration OpenVPN
- Centos7 NTP网络时间协议
- CentOS7.x安装配置Shadowsocks客户端终端翻墙
- Centos7上crontab不执行
- Centos7关闭图形界面
- Centos7单用户模式
- CentOS7安装ffmpeg4.1+libx264
- Centos7安装Rabbitmq
- Centos7服务器初始化
- Centos7自启动rc.local中的脚本不执行
- Chrome firefox配置SwitchyOmega翻墙
- Cloudflare
- Cmdb
D
- Dbeaver安装
- Debian iptables防火墙基础
- Debian 添加自启动服务
- Debian(Ubuntu)安装nfs
- Debian利用shadowsocks和polipo终端代理翻墙
- Debian服务器初始化
- Debian配置iptables
- Debian配置网络
- Devops
- Django 配置MySQL数据库
- DNS解析超时排查
- Docker and docker-compose快速安装
- Docker build
- Docker lnmp Docker-compose搭建nginx+php+mysql
- Docker 安装 Memcached
- Docker 安装mediawiki
- Docker-compose安装及升级zentao(禅道)
- Dos2unix
F
H
J
L
- Laravel 的 Redis 使用指南
- Leanote
- Learn list学习列表
- Learn ruby
- Linux Core Dump
- Linux TCP状态TIME WAIT 过多的处理
- Linux 上 .NET Core
- Linux上安装jdk
- Linux下按进程实时统计网络带宽利用率 nethogs的安装
- Linux下网络监控工具
- Linux内存查看及一次释放Linux内存问题处理(Aliyun ecs)
- Linux安全及服务器安全
- Linux时间同步的那些事儿
- Linux有空间 但是df100
- Linux服务器带宽测试
- Linux查看端口占用情况
- Linux添加swap交换分区(虚拟内存)
- Linux端口扫描工具nmap and nwatch
- Linux运维常见故障
- Linux重定向
- Lnmp
- Load cpu查看
- Logrotate轮询日志
- Lsyncd
- Lua基础
M
N
P
R
- Rabbitmq cluster on centos7
- Rabbitmq cluster on docker-compose
- Rabbitmq常用命令
- Redis Sentinel高可用架构
- Redis 和 Memcache的区别
- Redis-bigkeys
- Redis4 cluster
- Redis5 cluster
- Redis6 cluster
- Redis备份与恢复
- Redis安全
- Redis导至mediawiki登录不了
- Redis常用操作
- Redis批量删除key
- Redis数据导入导出工具redis-dump-load
- Redis运维
- Redis集群中的主从知识
- Redmine ins
- Resin
- Rsync常用选项参数
- Rsync服务器架设
- Rsync正则或过滤规则
- Rust
S
- Salt-ssh批量初始化机器
- Saltstack state安装nignx
- Saltstack文件管理
- Saltstack的配置管理salt.states
- Sar
- Screen 基础
- Sed skill
- Sed删除或者替换有关键字的一行
- Sed技巧按日期提取日志
- Set up CGI with Apache on kali Linux
- ShadowsocksR
- Shadowsocks安装与配置
- Shell 多行注释详解
- Shell加密之shc
- Shell常用技能
- Shell札记
- Shell获取某个时间段的nginx日志内容
- Slb基础
- Sphinx 安装
- SpringCloud相关
- Ssdb安装
- Ssh-agent
- Ssh-keygen
- Ssh基本知识
- SSH登录时利用Google Authenticator二次身份验证
- Ssh的"Write failed: Broken pipe"问题
- Ssh突然登录不了服务器
- Ssr
- Sudo
- Supervisor基础