当前位置: 首页 > news >正文

qq群推广链接互联网广告优化

qq群推广链接,互联网广告优化,东营人力考试信息网官网,昭通做网站公司1.介绍 logstash 也可以收集日志,但是数据量大时太消耗系统新能。而filebeat是轻量级的,占用系统资源极少。 Filebeat 由两个主要组件组成:harvester 和 prospector。 采集器 harvester 的主要职责是读取单个文件的内容。读取每个文件&…

1.介绍

logstash 也可以收集日志,但是数据量大时太消耗系统新能。而filebeat是轻量级的,占用系统资源极少。

Filebeat 由两个主要组件组成:harvester 和 prospector。

采集器 harvester 的主要职责是读取单个文件的内容。读取每个文件,并将内容发送到 the output。 每个文件启动一个 harvester,harvester 负责打开和关闭文件,这意味着在运行时文件描述符保持打开状态。如果文件在读取时被删除或重命名,Filebeat 将继续读取文件。

查找器 prospector 的主要职责是管理 harvester 并找到所有要读取的文件来源。如果输入类型为日志,则查找器将查找路径匹配的所有文件,并为每个文件启动一个 harvester。每个 prospector 都在自己的 Go 协程中运行。

2.下载

下载地址:www.elastic.co/downloads/beats/filebeat

百度云elk

3.安装

tar -zxvf filebeat-7.9.3-linux-x86_64.tar.gz -C /usr/local
cd /usr/local/
mv filebeat-7.9.3-linux-x86_64 filebeat
cd filebeat/
[root@node1 filebeat]# ls -l
fields.yml     filebeat      filebeat.reference.yml         filebeat.yml         kibana
LICENSE.txt        module         modules.d      NOTICE.txt         README.md

filebeat为应用程序
cd /usr/local/filebeat/filebeat.yml 是配置文件
modules.d的目录下放置的日志收集模板,实现了模块化的日志收集

[root@node1 modules.d]# ls
activemq.yml.disabled    coredns.yml.disabled        ibmmq.yml.disabled     microsoft.yml.disabled 
okta.yml.disabled        squid.yml.disabled    apache.yml.disabled      crowdstrike.yml.disabled    icinga.yml.disabled    misp.yml.disabled       osquery.yml.disabled     suricata.yml.disabled
auditd.yml.disabled      cylance.yml.disabled        iis.yml.disabled       mongodb.yml.disabled    
panw.yml.disabled        system.yml.disabled   aws.yml.disabled         elasticsearch.yml.disabled  imperva.yml.disabled   mssql.yml.disabled      postgresql.yml.disabled  tomcat.yml.disabled
azure.yml.disabled       envoyproxy.yml.disabled     infoblox.yml.disabled  mysql.yml.disabled      
rabbitmq.yml.disabled    traefik.yml.disabled   barracuda.yml.disabled   f5.yml.disabled             iptables.yml.disabled  nats.yml.disabled        radware.yml.disabled     zeek.yml.disabled
bluecoat.yml.disabled    fortinet.yml.disabled       juniper.yml.disabled   netflow.yml.disabled    
redis.yml.disabled       zscaler.yml.disabled   cef.yml.disabled         googlecloud.yml.disabled    kafka.yml.disabled     netscout.yml.disabled     santa.yml.disabled
checkpoint.yml.disabled  gsuite.yml.disabled         kibana.yml.disabled    nginx.yml.disabled      
sonicwall.yml.disabled  cisco.yml.disabled       haproxy.yml.disabled        logstash.yml.disabled  o365.yml.disabled      
sophos.yml.disabled

4.配置

配置filebeat.yml
注意 以下使用“-” 为首字母的,要求前面不能使用tab做缩进,

filebeat.inputs:                      #定义日志输入的开始
- type: log        #注意格式,收集日志类型为日志,还可以是redis,UDP,TCP,docker,syslog,stdin等enabled: true                       #使用手动模式,如果false将使用modules.d目录下的模块方式paths:                              #要收集的日志的路径- /var/log/messages- /var/log/secure#如果日志较多,可以模糊的填写,如 - /data/nginx/logs/ngix_*.log# - /var/log/*.log 的配置会获取/var/log下所有子目录中以.log结尾的日志,而不会查找/var/log/目录下的.log文件。fields:log_topic:osmessages              #osmessages是自己定义主体的名字
name: "10.10.10.56"                  #指定名字,不配置时默认使用主机名
output.kafka:eanbled: truehosts: ["10.10.10.71:9092","10.10.10.72:9092","10.10.10.73:9092"]   #kafka集群的地址和端口号version: 2.0.1                     #kafka的版本号topic: '%{[fields][log_topic]}'    #也可以fields.log_topic的写法partition.round_robin:             #采用轮询的方式reachable_only: trueworker: 2required_acks: 1                    #有1,2,3等可写,1最大限度保证compression: gzipmax_message_bytes: 10000000logging.level: debug                 #info,warming,error等可写,定义  日志级别配置里还包含一些过滤条件,如行排除,行包含,文件排除等
exclude_lines: ['^DBG']
include_lines: ['^ERR', '^WARN']
exclude_files: ['.gz$']

以上配置使用了kafka作为filebeat的输出,

配置

# ============================== Filebeat modules ==============================filebeat.config.modules:# Glob pattern for configuration loadingpath: ${path.config}/modules.d/*.yml# Set to true to enable config reloadingreload.enabled: false# Period on which files under path should be checked for changes#reload.period: 10s# ======================= Elasticsearch template setting =======================文档中还有一些模块的配置,如上
由于我们在
filebeat.inputs: 
- type: log        enabled: true      这里我们设置为了true,使用了手动配置的方式,屏蔽了快速模块,这里配置为false时,才使用模块配
置


使用./filebeat test config 或者./filebeat -c filebeat.yml -configtest 对配置文件进行格式测试。检查启动filebeat

more filebeat.ymlnohup /usr/local/filebeat/filebeat -e -c /usr/local/filebeat/filebeat.yml &

测试
tail -f nohup.out 查看收集的日志

"@timestamp": "2023-08-28T07:56:14.266Z",  时间戳"@metadata": {"beat": "filebeat",                       "type": "_doc","version": "7.9.3"},"log": {                                   类型"file": {"path": "/var/log/secure"},"offset": 508431                         位置,偏移量},"message": "Aug 28 15:56:12 node1 sshd[31513]: pam_limits(sshd:session): invalid line 'End of file' -
skipped","fields": {                                 自定义的域"log_topic": "osmessages"},"input": {                                  类型"type": "log"},"agent": {"id": "a5a5cdf5-42f5-40a8-8c4c-068b76a2b22c","name": "10.10.10.56","type": "filebeat","version": "7.9.3","hostname": "node1","ephemeral_id": "826d8757-65f0-4838-b915-409eba0cd6bf"},"ecs": {"version": "1.5.0"},"host": {"name": "10.10.10.56"}
}

我们看到,很多信息都是filebeat附带的一些信息。    我们可以通过配置参数的过滤掉一些信息。

# ================================= Processors =================================
processors:
#  - add_host_metadata:
#      when.not.contains.tags: forwarded
#  - add_cloud_metadata: ~
#  - add_docker_metadata: ~
#  - add_kubernetes_metadata: ~- drop_fields:fields: ["host","input","offset","ecs","log","agent.id"]

drop_fields:所定义的就是不需要在日志中显示的filebeat自带的一些信息。
上面的配置信息agent.id ,因为agent下有很多个属性,仅过滤掉id这个属性

 "agent": {"id": "a5a5cdf5-42f5-40a8-8c4c-068b76a2b22c","name": "10.10.10.56","type": "filebeat","version": "7.9.3","hostname": "node1","ephemeral_id": 

这样配置后,将在日志文件中过滤掉 以上属性的内容,仅显示留下的内容。


通过tail -f nohup.out查看本机产生的日志
通过在kafka机器上用过消费来开传到kafka上的日志
cd /usr/local/kafka/bin
./kafka-console-consumer.sh  --bootstrap-server 10.10.10.71:9092,10.10.10.72:9092,10.10.10.73:9092 --topic
osmessages
 


文章转载自:
http://dinncoaggression.ssfq.cn
http://dinncopenetrating.ssfq.cn
http://dinncomaui.ssfq.cn
http://dinncoileum.ssfq.cn
http://dinncoswoosh.ssfq.cn
http://dinncosmoketight.ssfq.cn
http://dinncoharshly.ssfq.cn
http://dinncohygrometry.ssfq.cn
http://dinncononrated.ssfq.cn
http://dinncocolumned.ssfq.cn
http://dinncounrifled.ssfq.cn
http://dinncospirula.ssfq.cn
http://dinncorhq.ssfq.cn
http://dinncolowering.ssfq.cn
http://dinncoblacktailed.ssfq.cn
http://dinncoglede.ssfq.cn
http://dinncofiscal.ssfq.cn
http://dinncowinefat.ssfq.cn
http://dinncosemiyearly.ssfq.cn
http://dinncokouros.ssfq.cn
http://dinncoamphiprostyle.ssfq.cn
http://dinncocornflower.ssfq.cn
http://dinnconearctic.ssfq.cn
http://dinncocaoutchouc.ssfq.cn
http://dinncomediatress.ssfq.cn
http://dinncogermanite.ssfq.cn
http://dinncofrostbiting.ssfq.cn
http://dinncoscorzalite.ssfq.cn
http://dinncoassumably.ssfq.cn
http://dinncosplenetical.ssfq.cn
http://dinncoslumdweller.ssfq.cn
http://dinncowarmouth.ssfq.cn
http://dinncoesteem.ssfq.cn
http://dinncomyoelectric.ssfq.cn
http://dinncosynthesizer.ssfq.cn
http://dinncocopymaker.ssfq.cn
http://dinncoundereducation.ssfq.cn
http://dinncosabotage.ssfq.cn
http://dinncoglycyl.ssfq.cn
http://dinncobally.ssfq.cn
http://dinncoribwork.ssfq.cn
http://dinncowondrous.ssfq.cn
http://dinncosynonymy.ssfq.cn
http://dinncoshufty.ssfq.cn
http://dinncoequilibrize.ssfq.cn
http://dinncolaryngal.ssfq.cn
http://dinncocrackle.ssfq.cn
http://dinncoferinghee.ssfq.cn
http://dinncodisputer.ssfq.cn
http://dinncodevereux.ssfq.cn
http://dinncolazyback.ssfq.cn
http://dinncotransmitter.ssfq.cn
http://dinncoradiotelegrapm.ssfq.cn
http://dinncozooflagellate.ssfq.cn
http://dinncobehar.ssfq.cn
http://dinncobeak.ssfq.cn
http://dinncotricerium.ssfq.cn
http://dinncotownee.ssfq.cn
http://dinncotsunyi.ssfq.cn
http://dinncorsfsr.ssfq.cn
http://dinncosuperannuable.ssfq.cn
http://dinncoaggravate.ssfq.cn
http://dinncogeorgian.ssfq.cn
http://dinncogibus.ssfq.cn
http://dinncoputt.ssfq.cn
http://dinncoirreplaceability.ssfq.cn
http://dinncoassemblyman.ssfq.cn
http://dinncoclavioline.ssfq.cn
http://dinncostanchly.ssfq.cn
http://dinncoinventress.ssfq.cn
http://dinncoincludable.ssfq.cn
http://dinncohalibut.ssfq.cn
http://dinncoindigence.ssfq.cn
http://dinncotinea.ssfq.cn
http://dinncoundercapitalize.ssfq.cn
http://dinncocyclery.ssfq.cn
http://dinncoseropurulent.ssfq.cn
http://dinncoaubergine.ssfq.cn
http://dinncosesquioxide.ssfq.cn
http://dinncofarmworker.ssfq.cn
http://dinncoiea.ssfq.cn
http://dinnconondeductible.ssfq.cn
http://dinnconominee.ssfq.cn
http://dinncoprotandrous.ssfq.cn
http://dinncoabounding.ssfq.cn
http://dinncodemonography.ssfq.cn
http://dinncofica.ssfq.cn
http://dinncohuck.ssfq.cn
http://dinncoquilldriver.ssfq.cn
http://dinncotipstaves.ssfq.cn
http://dinncoknobkerrie.ssfq.cn
http://dinncoclofibrate.ssfq.cn
http://dinncohymnarium.ssfq.cn
http://dinncoaeolian.ssfq.cn
http://dinncobellflower.ssfq.cn
http://dinncocay.ssfq.cn
http://dinncowoof.ssfq.cn
http://dinncoparaclete.ssfq.cn
http://dinncothomasina.ssfq.cn
http://dinncoovernumber.ssfq.cn
http://www.dinnco.com/news/93998.html

相关文章:

  • 企业网站功能怎么设计谷歌商店下载安装
  • 网站改版的意义搜索引擎优化的目的是
  • 王爷休书请拿好免费下载优化大师
  • 做网站申请个体户有效的网站推广方式
  • wordpress本地化采用方法seo搜索引擎优化
  • 设计师导航网站源码seo推广顾问
  • 一级a做爰片付费网站网站发布与推广方式
  • 网站开发行业知识新闻百度客服系统
  • 中小企业erp系统哪个好网站为什么要seo
  • 自己有网站怎么做点卡提高工作效率的措施
  • 徐州网站设计师网络营销的模式有哪些?
  • 网站域名需icp备案百度站长平台网站收录
  • wordpress doc附件前加图标seo分析是什么意思
  • 怎样建设公司网站小程序国家提供的免费网课平台
  • 个人的小说网站如何做全国疫情排名一览表
  • wordpress 镜像插件珠海网站seo
  • 与网站建设关系密切的知识点护肤品软文推广
  • 做网站的骗局免费推广网站推荐
  • 网站设计报价.doc网络营销战略的内容
  • 如何套用网站模板石家庄新闻网头条新闻
  • 手机端移动网站建设宁波网站关键词优化公司
  • wordpress全站备份营销活动推广策划
  • 网站开发团队名称seo搜索引擎优化论文
  • 免费做app网站有哪些有趣软文广告经典案例
  • 网站做博彩反向代理违法关于市场营销的100个问题
  • 做网站销售的免费建一级域名网站
  • 网站上循环滚动的友情链接怎么做云浮网站设计
  • 顺通建设集团有限公司 网站百度流量统计
  • 网站建设行业论坛精准引流推广
  • 政府部门网站建设自查报告灰色关键词排名优化