File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,10 @@ positions:
133
133
clients :
134
134
- url : http://loki:3100/loki/api/v1/push
135
135
136
+ scrape_configs :
137
+
136
138
# local machine logs
137
139
138
- scrape_configs :
139
140
- job_name : local
140
141
static_configs :
141
142
- targets :
@@ -146,7 +147,6 @@ scrape_configs:
146
147
147
148
# # docker logs
148
149
149
- # scrape_configs:
150
150
# - job_name: docker
151
151
# pipeline_stages:
152
152
# - docker: {}
@@ -155,19 +155,18 @@ scrape_configs:
155
155
# job: docker
156
156
# __path__: /var/lib/docker/containers/*/*-json.log
157
157
158
- # # syslog target
159
-
160
- # scrape_configs:
161
- # - job_name: syslog
162
- # syslog:
163
- # listen_address: 0.0.0.0:1514
164
- # idle_timeout: 60s
165
- # label_structured_data: yes
166
- # labels:
167
- # job: "syslog"
168
- # relabel_configs:
169
- # - source_labels: ['__syslog_message_hostname']
170
- # target_label: 'host'
158
+ # syslog target
159
+
160
+ - job_name : syslog
161
+ syslog :
162
+ listen_address : 0.0.0.0:1514 # make sure you also expose this port on the container
163
+ idle_timeout : 60s
164
+ label_structured_data : yes
165
+ labels :
166
+ job : " syslog"
167
+ relabel_configs :
168
+ - source_labels : ['__syslog_message_hostname']
169
+ target_label : ' host'
171
170
` ` `
172
171
173
172
## Loki Docker Driver
You can’t perform that action at this time.
0 commit comments