Logstash安装以及简单介绍

Logstash Introduction

Logstash is a data collection engine with real-time.
Logstash can user ElasticSearch and Kibana analyze data.

Install Logstash

If you want install logstash you can :
- yum

sudo yum install logstash
  • rpm
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Simple run Logstash

This is helloword.

bin/logstash -e 'input { stdin { } } output { stdout {} }'

This is run more *.config

./bin/logstash -f /etc/logstash/conf.d

How Logstash Work

Inputs

use inputs to get data into logstash.We can use more tool:
- file:reads from a file
- redis:reads from redis server.
- sql:reads usr SQL from Mysql.
- beats: processes events sent by Beats.

Filters

Filters is a intermediary processing devices in the Logstash pipeline.

  • grok: parse and structure arbitrary text. Grok is currently the best way in Logstash to parse unstructured log data into something structured and queryable. With 120 patterns built-in to Logstash, it’s more than likely you’ll find one that meets your needs!
  • mutate: perform general transformations on event fields. You can rename, remove, replace, and modify fields in your events.
  • drop: drop an event completely, for example, debug events.
    clone: make a copy of an event, possibly adding or removing fields.
  • geoip: add information about geographical location of IP addresses (also displays amazing charts in Kibana!)

For more information about the available filters, see Filter Plugins.

Outputs

Outputs are the final phase the Logstash pipeline. An event cna pass through multiple outputs.

  • elasticsearch: send event data to Elasticsearch. If you’re planning to save your data in an efficient, convenient, and easily queryable format… Elasticsearch is the way to go. Period. Yes, we’re biased :)
  • file: write event data to a file on disk.

For more information about the available outputs, see Output Plugins.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值