Skip to content

Commit f36ed69

Browse files
Merge branch 'master' into 820-loki-protobuf
2 parents 5c48134 + 34d3fb5 commit f36ed69

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

README.idoc.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ On MacBook Pro 2017 with two physical cores `file.d` can achieve the following t
3636
* 1.7GB/s in `files > devnull` case
3737
* 1.0GB/s in `files > json decode > devnull` case
3838

39+
More benchmarks can be found [here](https://github.com/ozontech/file.d-bench).
40+
3941
TBD: throughput on production servers.
4042

4143
## Plugins
@@ -46,6 +48,9 @@ TBD: throughput on production servers.
4648

4749
**Output**: @global-contents-table-plugin-output|links
4850

51+
## Logging system
52+
53+
We have also developed a scalable and high-performance database for logs — [seq-db](https://github.com/ozontech/seq-db). File.d can send data to [seq-db](https://github.com/ozontech/seq-db) using [Elasticsearch Bulk API](https://ozontech.github.io/seq-db-docs/#write-documents-to-seq-db). An example of sending data from file.d to [seq-db](https://github.com/ozontech/seq-db) can be found [here](/docs/examples.md#kafka-to-seq-db).
4954

5055
## What's next
5156
* [Quick start](/docs/quick-start.md)

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ On MacBook Pro 2017 with two physical cores `file.d` can achieve the following t
3636
* 1.7GB/s in `files > devnull` case
3737
* 1.0GB/s in `files > json decode > devnull` case
3838

39+
More benchmarks can be found [here](https://github.com/ozontech/file.d-bench).
40+
3941
TBD: throughput on production servers.
4042

4143
## Plugins
@@ -46,6 +48,9 @@ TBD: throughput on production servers.
4648

4749
**Output**: [clickhouse](plugin/output/clickhouse/README.md), [devnull](plugin/output/devnull/README.md), [elasticsearch](plugin/output/elasticsearch/README.md), [file](plugin/output/file/README.md), [gelf](plugin/output/gelf/README.md), [kafka](plugin/output/kafka/README.md), [loki](plugin/output/loki/README.md), [postgres](plugin/output/postgres/README.md), [s3](plugin/output/s3/README.md), [splunk](plugin/output/splunk/README.md), [stdout](plugin/output/stdout/README.md)
4850

51+
## Logging system
52+
53+
We have also developed a scalable and high-performance database for logs — [seq-db](https://github.com/ozontech/seq-db). File.d can send data to [seq-db](https://github.com/ozontech/seq-db) using [Elasticsearch Bulk API](https://ozontech.github.io/seq-db-docs/#write-documents-to-seq-db). An example of sending data from file.d to [seq-db](https://github.com/ozontech/seq-db) can be found [here](/docs/examples.md#kafka-to-seq-db).
4954

5055
## What's next
5156
* [Quick start](/docs/quick-start.md)

docs/examples.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,40 @@ pipelines:
7373
default_short_message_value: "message isn't provided"
7474
```
7575
76+
## Kafka to seq-db
77+
The following config reads logs from kafka, processes them and sends into [seq-db](https://github.com/ozontech/seq-db) via Elasticsearch Bulk API.
78+
It assumes that logs are in docker json format.
79+
```yaml
80+
pipelines:
81+
kafka_gelf_example:
82+
input:
83+
type: kafka
84+
brokers: [kafka-broker-0.svc.local, kafka-broker-1.svc.local, kafka-broker-2.svc.local]
85+
topics: [k8s-logs]
86+
87+
actions:
88+
- type: json_decode # unpack "log" field
89+
field: log
90+
metric_name: input
91+
metric_labels: [k8s_label_app] # expose input metrics to prometheus
92+
93+
# normalize # unify log format
94+
- type: rename
95+
log: message
96+
msg: message
97+
ts: time
98+
_ts: time
99+
systemd.unit: service
100+
syslog.identifier: service
101+
k8s_label_app: service
102+
103+
output:
104+
type: elasticsearch
105+
endpoints:
106+
- "http://seq-db-proxy:9002"
107+
```
108+
109+
76110
## What's next?
77111
1. [Input](/plugin/input/README.md) plugins documentation
78112
2. [Action](/plugin/action/README.md) plugins documentation

0 commit comments

Comments
 (0)