Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 2.31 KB

README.md

File metadata and controls

56 lines (43 loc) · 2.31 KB

Stanza Log Agent Documentation

This repo contains documentation for the Stanza Log Agent.

How do I configure the agent?

The agent is configured using a YAML config file that is passed in using the --config flag. This file defines a collection of operators beneath a top-level pipeline key. Each operator possesses a type and id field.

pipeline:
  - type: udp_input
    listen_address: :5141

  - type: syslog_parser
    parse_from: message
    protocol: rfc5424

  - type: elastic_output

What is an operator?

An operator is the most basic unit of log processing. Each operator fulfills only a single responsibility, such as reading lines from a file, or parsing JSON from a field. These operators are then chained together in a pipeline to achieve a desired result.

For instance, a user may read lines from a file using the file_input operator. From there, the results of this operation may be sent to a regex_parser operator that creates fields based on a regex pattern. And then finally, these results may be sent to a elastic_output operator that writes each line to Elasticsearch.

What operators are available?

Inputs:

Parsers:

Outputs:

General purpose:

Or create your own plugins for a technology-specific use case.