当前位置:网站首页>Filebeat custom indexes and fields
Filebeat custom indexes and fields
2022-06-30 20:02:00 【m0_ sixty million seven hundred and twenty-five thousand two hu】
Catalog
Like logstash, By default filebeat-*
The index of and use the... Under the unzipped directory fields.yml
( Binary compression package )
The requirement here is to parse the generated specific file , Each line is recorded as json Formatted data , need :
- Different files generate different indexes ;
- Type needs to be defined , The string was not used in the original query
.keyword
, Because the default template uses less than 1024 yes keyword, Conversely text, If you want to bekeyword
Use isfieldName.keyword
;
To configure
setup.template.name: custom_name
setup.template.pattern: custom_name_*
setup.template.enabled: false
setup.template.overwrite: false
setup.template.fields: customFields.yml
setup.ilm.enabled: false
processors:
- drop_fields:
fields: [log, host, input, agent, ecs]
ignore_missing: false
filebeat.inputs:
- close_removed: true
close_inactive: 5m
type: log
tags: [t1]
clean_removed: true
enabled: true
json: {
keys_under_root: true, overwrite_keys: true}
paths: [/data/t1_*]
- close_removed: true
close_inactive: 5m
type: log
tags: [t2]
clean_removed: true
enabled: true
json: {
keys_under_root: true, overwrite_keys: true}
paths: [/data/t2_*]
output.elasticsearch:
indices:
- index: custom_name_t1
when.contains: {
tags: t1}
- when.contains: {
tags: t2}
index: custom_name_t2
hosts: ['127.0.0.1:9200']
setup.template.name Set up a new template , The name of the template
setup.template.pattern The template matches those indexes
setup.template.enabled: false Turn off the default template configuration
setup.template.overwrite: false Whether to overwrite the existing template
when.contains: contain
keys_under_root: true take field Expand to outermost (the custom fields are stored as top-level fields in the output document)
Please view the customized template :Configuration-template
Please check the file path :Configure project paths
Field definition
setup.template.fields: customFields.yml
( Please see the above link for the path ), The file format is as follows :
- key: custom_name
title: custom_name
description: > custom fields
fields:
# some desc
- name: t1
type: keyword
- name: t2
type: keyword
- name: t3
type: ip
- name: t4
type: integer
- name: t5
type: ip
- name: t6
type: integer
- name: t7
type: ip
- name: t8
type: text
- name: t9
type: date
- name: t10
type: long
边栏推荐
- The project is configured with eslint. When the editor does not close the eslint function, the eslint does not take effect
- 操作系统面试题汇总(不定期更新)
- SSM整合流程(整合配置、功能模块开发、接口测试)
- History, selection strategy and in-depth evaluation of note taking software
- 为什么数字化转型战略必须包括持续测试?
- MySQL billing Statistics (Part 1): MySQL installation and client dbeaver connection
- 【LeetCode】【SQL】刷题笔记
- A necessary tool for testing -- postman practical tutorial
- Growth summer challenge is coming, exclusive community welfare is coming ~ get CSDN customized T-shirt for free
- 内存数据库如何发挥内存优势?
猜你喜欢
QQmlApplicationEngine failed to load component qrc:/main.qml:-1 No such file or directory
The former king of fruit juice sold for 1.6 billion yuan
将 EMQX Cloud 数据通过公网桥接到 AWS IoT
线下门店为什么要做新零售?
超视频时代的音视频架构建设|Science和英特尔联袂推出“架构师成长计划”第二季
Why must a digital transformation strategy include continuous testing?
How unity pulls one of multiple components
【已解决】抖音如何取消关注已注销的账户
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
测试人进阶技能:单元测试报告应用指南
随机推荐
4.3-inch touch screen 12 channel control port programmable network central control supports mutual backup of 5 central control hosts
2022 最新 JCR正式发布全球最新影响因子名单(前600名)
dataloader 源码_DataLoader
正则系列之字符类
Kubernetes为什么会赢,容器圈的风云变幻!
MQ selection (2022.5.9-5.15)
【LeetCode】【SQL】刷题笔记
mysql统计账单信息(上):mysql安装及客户端DBeaver连接使用
【ICLR 2021】半监督目标检测:Unbiased Teacher For Semi-Supervised Object Detection
重复乃技艺之母
yolo 目标检测
暑期实训21组第一周个人工作总结
传输层 使用滑动窗口实现流量控制
composer
【多线程】使用线程池、实现一个简单线程池
VR全景中特效是如何编辑的?细节功能如何展示?
CV+Deep Learning——网络架构Pytorch复现系列——basenets(BackBones)(一)
VR全景添加对比功能,让差异化效果展示更直观!
VR云展厅如何给线下实体带来活力?有哪些功能?
Django上传excel表格并将数据写入数据库的详细步骤