Skip to content

Commit 7661321

Browse files
authored
Standardized on yaml and fixed shell usage for Elasticsearch input plugin docs. Fixes #1796. (#1797)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 190db40 commit 7661321

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

pipeline/inputs/elasticsearch.md

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,15 @@ In order to start performing the checks, you can run the plugin from the command
2828

2929
From the command line you can configure Fluent Bit to handle Bulk API requests with the following options:
3030

31-
```bash
32-
fluent-bit -i elasticsearch -p port=9200 -o stdout
31+
```shell
32+
$ fluent-bit -i elasticsearch -p port=9200 -o stdout
3333
```
3434

3535
### Configuration file
3636

37-
In your configuration file append the following `Input` and `Output` sections:
37+
In your configuration file append the following:
3838

3939
{% tabs %}
40-
{% tab title="fluent-bit.conf" %}
41-
42-
```python
43-
[INPUT]
44-
name elasticsearch
45-
listen 0.0.0.0
46-
port 9200
47-
48-
[OUTPUT]
49-
name stdout
50-
match *
51-
```
52-
53-
{% endtab %}
54-
5540
{% tab title="fluent-bit.yaml" %}
5641

5742
```yaml
@@ -67,29 +52,26 @@ pipeline:
6752
```
6853
6954
{% endtab %}
70-
{% endtabs %}
71-
72-
As described previously, the plugin will handle ingested Bulk API requests.
73-
For large bulk ingestion, you might have to increase buffer size using the `buffer_max_size` and `buffer_chunk_size` parameters:
74-
75-
{% tabs %}
7655
{% tab title="fluent-bit.conf" %}
7756
78-
```python
57+
```text
7958
[INPUT]
8059
name elasticsearch
8160
listen 0.0.0.0
8261
port 9200
83-
buffer_max_size 20M
84-
buffer_chunk_size 5M
8562

8663
[OUTPUT]
8764
name stdout
8865
match *
8966
```
9067

9168
{% endtab %}
69+
{% endtabs %}
70+
71+
As described previously, the plugin will handle ingested Bulk API requests.
72+
For large bulk ingestion, you might have to increase buffer size using the `buffer_max_size` and `buffer_chunk_size` parameters:
9273

74+
{% tabs %}
9375
{% tab title="fluent-bit.yaml" %}
9476

9577
```yaml
@@ -106,6 +88,22 @@ pipeline:
10688
match: '*'
10789
```
10890
91+
{% endtab %}
92+
{% tab title="fluent-bit.conf" %}
93+
94+
```text
95+
[INPUT]
96+
name elasticsearch
97+
listen 0.0.0.0
98+
port 9200
99+
buffer_max_size 20M
100+
buffer_chunk_size 5M
101+
102+
[OUTPUT]
103+
name stdout
104+
match *
105+
```
106+
109107
{% endtab %}
110108
{% endtabs %}
111109

@@ -130,4 +128,4 @@ For large log ingestion on these beat plugins, users might have to configure rat
130128
processors:
131129
- rate_limit:
132130
limit: "200/s"
133-
```
131+
```

0 commit comments

Comments
 (0)