页面“IT支持”与“Filebeat nginx log”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
=路由os 在企业=
+
[[category:ops]]
推荐ros做路由 ! panabit做行为审计 这些都低成本 前提是你企业少于254个用户!超过254个用户panabit要升级[[用户:Evan|Evan]]([[用户讨论:Evan|讨论]])收钱!
 
  
買兩台工控機、然後上 pfSense HA config、以前這配置救過我一命。
+
=ins and config=
 +
==Download and install Filebeat==
 +
<pre>
  
= pfSense=
 
  
https://docs.netgate.com/pfsense/en/latest/install/install-walkthrough.html
+
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>"
  
[https://blog.51cto.com/fxn2025/2447266 pfSense2.4.4安装和配置]
+
Where <password> is the password of the elastic user, <es_url> is the URL of Elasticsearch, and <kibana_url> is the URL of Kibana.
  
[https://www.cnblogs.com/lsdb/p/10006377.html  pfSense-2.4.4安装教程 ]
+
</pre>
  
[https://pfschina.org/wp/?p=825 pfSense上的OpenVPN:启用对远程LAN资源的访问]
+
==Enable and configure the nginx module ==
  
[https://blog.csdn.net/qq_34046456/article/details/85302245  在虚拟机上安装PFsense详细图解]
+
<pre>
 +
sudo filebeat modules enable nginx
  
[https://blog.csdn.net/qq_34046456/article/details/85302245  在虚拟机上安装PFsense详细图解]
+
Modify the settings in the /etc/filebeat/modules.d/nginx.yml file.
  
[https://blog.csdn.net/myhaspl/article/details/13017061?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control  网络防火墙实战-基于pfsense(3)]
+
</pre>
== PF VPN==
 
  
[https://blog.csdn.net/u012375924/article/details/95338118?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-5.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-5.control  ESXI + pfsense + 公网ip ,实现内网服务器端口映射]
+
== Start Filebeat==
[https://chrislazari.com/pfsense-setting-up-openvpn-on-pfsense-2-4/  PFSense – Setting Up OpenVPN on PFSense 2.4.]
 
  
=openwrt=
+
<pre>
美国网件(NETGEAR) WNDR4300 750M双频千兆无线路由器
+
The setup command loads the Kibana dashboards. If the dashboards are already set up, omit this command.
  
有哪些 官方支持的水星型号
+
sudo filebeat setup
https://openwrt.org/toh/hwdata/mercury/start
+
sudo service filebeat start
 +
</pre>
  
[https://zhuanlan.zhihu.com/p/108934048 OpenWrt刷机详细流程(极路由)]
+
== Module status==
 +
<pre>
 +
Module status  右边的 check data 按键  -- > Nginx logs dashboard
  
[https://zhuanlan.zhihu.com/p/101006349 树莓派软路由 OpenWrt 简介]
+
</pre>
 +
systemctl daemon-reload
  
[https://www.zhihu.com/question/30771491 哪些路由器对OpenWrt支持较好?]
+
=see also=
  
https://www.mercusys.com/en/download/mw325r
+
https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-nginx.html
  
https://openwrt.org/supported_devices
 
  
https://openwrt.org/toh/hwdata/mercury/start
+
[https://www.cnblogs.com/kuku0223/p/8317965.html ELK--filebeat nginx模块]
 
 
==小米路由器4A 千兆版==
 
[https://www.yeliulee.com/archives/149.html/comment-page-1?replyTo=312 小米路由器 4A 刷入lean 的 openwrt/lede]
 
 
 
[https://www.right.com.cn/forum/thread-4045479-1-1.html 小米4A千兆版终极刷openwrt办法,内附自编译固件带$$R  ]
 
 
 
[https://www.wyr.me/post/619 小米路由器4免拆机刷OpenWrt教程]
 
 
 
[https://www.zhihu.com/question/333990425 小米路由器4A千兆版能不能刷Openwrt]
 
 
 
=ros Mikrotik=
 
[https://www.zhihu.com/question/21034719 如何评价极路由 HiWiFi]
 
 
 
[https://www.jianshu.com/p/e38851f9de2f Mikrotik无线路由器快速设置教程]
 
 
 
https://openwrt.org/zh/start
 
 
 
[https://blog.netlab.360.com/7500-mikrotik-routers-are-forwarding-owners-traffic-to-the-attackers-how-is-yours/ 窃听风云: 你的MikroTik路由器正在被监听]
 
 
 
https://www.zhihu.com/topic/19653984/hot
 
 
 
[https://zhuanlan.zhihu.com/p/101006349 树莓派软路由 OpenWrt 简介]
 
 
 
=路由器如何当交换机用=
 
公司的无线非常的卡 ,于是把一个坏的无线路由拿过来当作交换机 ,这样 win debian 都可以用上有钱的 当然 自己带了两段网线
 
 
 
# 关掉这个路由的DHCP功能
 
#改掉LAN口IP地址
 
#最网线不要接WAN接口  ,一个AP成功配置
 
 
 
[https://product.pconline.com.cn/itbk/wlbg/hiwifi/1702/8881901.html 路由器如何当交换机用]
 
 
 
[https://www.192ly.com/router-settings/mercury/mw325r-swsz.html 水星(MERCURY)MW325R路由器怎么设置]
 
 
 
=双系统之win=
 
2020年 08月 14日 星期五 15:37:29 CST
 
如何删除双系统中的一个系统
 
 
 
场景  本本有两个 win7  一个在ssd  ssd上的win7坏了 ,我重新安装win10 on ssd  但是又不见了 虽然第一启动是ssd
 
 
 
后来 在“运行”中我们输入“msconfig”然后点击“确定”,进入系统引导盘中  系统配置--》引导  把要的设置为默认 ,不要的也可以删除  然后就好了 开机是原来在ssd上的win7有点怪 不理了
 
 
 
=进入 bios=
 
==asus==
 
1、按电源键开机或重启,在启动过程中,不停按ESC键;
 
 
 
2、调出Please Select Boot Device,这个是启动项选择界面,可以直接选择启动项,也可以从这边进BIOS,那就是按↓方向键,移动到Enter Setup这个项,然后按Enter键即可进入。
 
 
 
http://www.xitongcheng.com/jiaocheng/xtazjc_article_44070.html
 
 
 
=缺少 api-ms-win-crt-runtime-l1-1-0.dll=
 
==问题出现 ==
 
 
 
运维组的其它小伙伴都请假了,于是我就暂时成为IT支持
 
 
 
“有个新来的同学电脑 出问题了 ” 前台妹子又出现了
 
 
 
 
 
一同学安装画板驱动时出现如下
 
错误:缺少 api-ms-win-crt-runtime-l1-1-0.dll
 
 
 
 
 
角斗办法 :
 
自己选择相对应的版本下载
 
https://support.microsoft.com/zh-cn/help/2999226/update-for-universal-c-runtime-in-windows
 
 
 
其它小伙伴说的什么 重装 删除注册表并是是最佳 办法
 
 
 
==参考 ==
 
 
 
https://helpx.adobe.com/cn/creative-cloud/kb/error_on_launch.html
 
 
 
[[category:ops]]
 

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


ELK--filebeat nginx模块