Skip to content

Commit 7a4e178

Browse files
committed
Adjusted azure logs ingestion api code examples to use 2 space indents. Part of issue #1897.
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 3be0edf commit 7a4e178

File tree

1 file changed

+57
-56
lines changed

1 file changed

+57
-56
lines changed

pipeline/outputs/azure_logs_ingestion.md

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -58,77 +58,78 @@ Use this configuration to quickly get started:
5858

5959
```yaml
6060
pipeline:
61-
inputs:
62-
- name: tail
63-
path: /path/to/your/sample.log
64-
tag: sample
65-
key: RawData
66-
67-
# Or use other plugins
68-
#- name: cpu
69-
# tag: sample
70-
71-
filters:
72-
- name: modify
73-
match: sample
74-
# Add a json key named "Application":"fb_log"
75-
add: Application fb_log
76-
77-
outputs:
78-
# Enable this section to see your json-log format
79-
#- name: stdout
80-
# match: '*'
81-
82-
- name: azure_logs_ingestion
83-
match: sample
84-
client_id: XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
85-
client_secret: some.secret.xxxzzz
86-
tenant_id: XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
87-
dce_url: https://log-analytics-dce-XXXX.region-code.ingest.monitor.azure.com
88-
dcr_id: dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
89-
table_name: ladcr_CL
90-
time_generated: true
91-
time_key: Time
92-
compress: true
61+
inputs:
62+
- name: tail
63+
path: /path/to/your/sample.log
64+
tag: sample
65+
key: RawData
66+
67+
# Or use other plugins
68+
#- name: cpu
69+
# tag: sample
70+
71+
filters:
72+
- name: modify
73+
match: sample
74+
# Add a json key named "Application":"fb_log"
75+
add: Application fb_log
76+
77+
outputs:
78+
# Enable this section to see your json-log format
79+
#- name: stdout
80+
# match: '*'
81+
82+
- name: azure_logs_ingestion
83+
match: sample
84+
client_id: XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
85+
client_secret: some.secret.xxxzzz
86+
tenant_id: XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
87+
dce_url: https://log-analytics-dce-XXXX.region-code.ingest.monitor.azure.com
88+
dcr_id: dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
89+
table_name: ladcr_CL
90+
time_generated: true
91+
time_key: Time
92+
compress: true
9393
```
9494
9595
{% endtab %}
9696
{% tab title="fluent-bit.conf" %}
9797
9898
```text
9999
[INPUT]
100-
Name tail
101-
Path /path/to/your/sample.log
102-
Tag sample
103-
Key RawData
100+
Name tail
101+
Path /path/to/your/sample.log
102+
Tag sample
103+
Key RawData
104+
104105
# Or use other plugins
105-
# [INPUT]
106-
# Name cpu
107-
# Tag sample
106+
#[INPUT]
107+
# Name cpu
108+
# Tag sample
108109

109110
[FILTER]
110-
Name modify
111-
Match sample
112-
# Add a json key named "Application":"fb_log"
113-
Add Application fb_log
111+
Name modify
112+
Match sample
113+
# Add a json key named "Application":"fb_log"
114+
Add Application fb_log
114115

115116
# Enable this section to see your json-log format
116117
#[OUTPUT]
117-
# Name stdout
118-
# Match *
118+
# Name stdout
119+
# Match *
119120

120121
[OUTPUT]
121-
Name azure_logs_ingestion
122-
Match sample
123-
client_id XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
124-
client_secret some.secret.xxxzzz
125-
tenant_id XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
126-
dce_url https://log-analytics-dce-XXXX.region-code.ingest.monitor.azure.com
127-
dcr_id dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
128-
table_name ladcr_CL
129-
time_generated true
130-
time_key Time
131-
Compress true
122+
Name azure_logs_ingestion
123+
Match sample
124+
client_id XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
125+
client_secret some.secret.xxxzzz
126+
tenant_id XXXXXXXX-xxxx-yyyy-zzzz-xxxxyyyyzzzzxyzz
127+
dce_url https://log-analytics-dce-XXXX.region-code.ingest.monitor.azure.com
128+
dcr_id dcr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
129+
table_name ladcr_CL
130+
time_generated true
131+
time_key Time
132+
Compress true
132133
```
133134

134135
{% endtab %}

0 commit comments

Comments
 (0)