File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
articles/azure-monitor/agents Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
-
2
1
---
3
2
title : Collect Syslog events with Azure Monitor Agent
4
3
description : Configure collection of Syslog events by using a data collection rule on virtual machines with Azure Monitor Agent.
@@ -209,12 +208,14 @@ $ cat /etc/syslog-ng/conf.d/azuremonitoragent.conf
209
208
# replace it by appropriate source name like in redhat 's_sys'
210
209
# Forwrding using unix domain socket
211
210
destination d_azure_mdsd {
212
- unix-dgram("/run/azuremonitoragent/default_syslog.socket"
213
- flags(no_multi_line)
214
- );
211
+ unix-dgram("/run/azuremonitoragent/default_syslog.socket"
212
+ flags(no_multi_line) );
213
+ };
214
+
215
+ log {
216
+ source(s_src); # will be automatically parsed from /etc/syslog-ng/syslog-ng.conf
217
+ destination(d_azure_mdsd);
215
218
};
216
- log { source(s_src); # will be automatically parsed from /etc/syslog-ng/syslog-ng.conf
217
- destination(d_azure_mdsd); };
218
219
```
219
220
220
221
> [ !Note]
You can’t perform that action at this time.
0 commit comments