Skip to content

Commit d683a89

Browse files
authored
Update data-collection-syslog.md
1 parent fdbc6ee commit d683a89

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/azure-monitor/agents/data-collection-syslog.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
title: Collect Syslog events with Azure Monitor Agent
43
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
209208
# replace it by appropriate source name like in redhat 's_sys'
210209
# Forwrding using unix domain socket
211210
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);
215218
};
216-
log { source(s_src); # will be automatically parsed from /etc/syslog-ng/syslog-ng.conf
217-
destination(d_azure_mdsd); };
218219
```
219220

220221
>[!Note]

0 commit comments

Comments
 (0)