You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sentinel/connect-cef-syslog-ama.md
+18-31Lines changed: 18 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,11 @@ ms.date: 02/19/2024
12
12
13
13
This article describes how to use the **Syslog via AMA** and **Common Event Format (CEF) via AMA** connectors to quickly filter and ingest Syslog messages, including those in Common Event Format (CEF), from Linux machines and from network and security devices and appliances.
14
14
15
-
These connectors install the Azure Monitor Agent (AMA) on any Linux machine from which you want to collect Syslog and/or CEF messages. This machine could be the originator of the messages, or it could be a forwarder that collects messages from other machines, such as network or security devices and appliances. The connector sends the agents instructions based on Data Collection Rules (DCRs) that you define. DCRs specify the systems to monitor and the types of logs or messages to collect, and they define filters to apply to the messages before they're ingested, for better performance and more efficient querying and analysis.
15
+
These connectors install the Azure Monitor Agent (AMA) on any Linux machine from which you want to collect Syslog and/or CEF messages. This machine could be the originator of the messages, or it could be a forwarder that collects messages from other machines, such as network or security devices and appliances. The connector sends the agents instructions based on [Data Collection Rules (DCRs)](../azure-monitor/essentials/data-collection-rule-overview.md) that you define. DCRs specify the systems to monitor and the types of logs or messages to collect, and they define filters to apply to the messages before they're ingested, for better performance and more efficient querying and analysis.
16
16
17
17
-[Set up the connector](#set-up-the-data-connectors)
18
18
-[Learn more about the connector](#how-microsoft-sentinel-collects-syslog-and-cef-messages-with-the-azure-monitor-agent)
19
+
-[Learn more about Data Collection Rules](../azure-monitor/essentials/data-collection-rule-overview.md)
19
20
20
21
> [!IMPORTANT]
21
22
>
@@ -49,7 +50,7 @@ The data ingestion process using the Azure Monitor Agent uses the following comp
49
50
50
51
- The local **Syslog daemon** (either `rsyslog` or `syslog-ng`) collects the log messages on TCP or UDP port 514 (per your preference). The daemon then sends these logs\* to the **Azure Monitor Agent**.
51
52
52
-
- The **Azure Monitor Agent** that you install on each Linux VM you want to collect Syslog messages from, by [setting up the data connector according to the instructions below](#set-up-the-syslog-via-ama-connector). The agent parses the logs and then sends them to your **Microsoft Sentinel (Log Analytics) workspace**.
53
+
- The **Azure Monitor Agent** that you install on each Linux VM you want to collect Syslog messages from, by [setting up the data connector according to the instructions below](tabs=single%2Csyslog%2Cportal#set-up-the-syslog-via-ama-connector). The agent parses the logs and then sends them to your **Microsoft Sentinel (Log Analytics) workspace**.
53
54
54
55
- Your **Microsoft Sentinel (Log Analytics) workspace:** Syslog messages sent here end up in the *Syslog* table, where you can query the logs and perform analytics on them to detect and respond to security threats.
55
56
@@ -65,7 +66,7 @@ The data ingestion process using the Azure Monitor Agent uses the following comp
65
66
66
67
-**Log forwarder:** This is a dedicated Linux VM that your organization sets up to collect the log messages from your Syslog and CEF log sources. The VM can be on-premises, in Azure, or in another cloud. This log forwarder itself has two components:
67
68
- The **Syslog daemon** (either `rsyslog` or `syslog-ng`) collects the log messages on TCP or UDP port 514 (per your preference). The daemon then sends these logs\* to the **Azure Monitor Agent**.
68
-
- The **Azure Monitor Agent** that you install on the log forwarder by setting up the Syslog and/or CEF data connectors according to the instructions below ([Syslog](#set-up-the-syslog-via-ama-connector) | [CEF](?tabs=cef#set-up-the-common-event-format-cef-via-ama-connector)). The agent parses the logs and then sends them to your **Microsoft Sentinel (Log Analytics) workspace**.
69
+
- The **Azure Monitor Agent** that you install on the log forwarder by setting up the Syslog and/or CEF data connectors according to the instructions below ([Syslog](tabs=forwarder%2Csyslog%2Cportal#set-up-the-syslog-via-ama-connector) | [CEF](?tabs=forwarder%2Ccef%2Cportal#set-up-the-common-event-format-cef-via-ama-connector)). The agent parses the logs and then sends them to your **Microsoft Sentinel (Log Analytics) workspace**.
69
70
70
71
- Your **Microsoft Sentinel (Log Analytics) workspace:** CEF logs sent here end up in the *CommonSecurityLog* table, and Syslog messages in the *Syslog* table. There you can query the logs and perform analytics on them to detect and respond to security threats.
71
72
@@ -86,8 +87,8 @@ The data ingestion process using the Azure Monitor Agent uses the following comp
86
87
The setup process for the Syslog via AMA connector has two parts:
87
88
88
89
1.**Install the Azure Monitor Agent and create a Data Collection Rule (DCR)**.
89
-
-[Using the Azure portal](?tabs=portal#install-the-ama-and-create-a-data-collection-rule-dcr)
90
-
-[Using the Azure Monitor Logs Ingestion API](?tabs=api#install-the-ama-and-create-a-data-collection-rule-dcr)
90
+
-[Using the Azure portal](?tabs=syslog%2Cportal#install-the-ama-and-create-a-data-collection-rule-dcr)
91
+
-[Using the Azure Monitor Logs Ingestion API](?tabs=syslog%2Capi#install-the-ama-and-create-a-data-collection-rule-dcr)
91
92
92
93
1. If you're collecting logs from other machines using a log forwarder, [**run the "installation" script**](#run-the-installation-script) on the log forwarder to configure the Syslog daemon to listen for messages from other machines, and to open the necessary local ports.
93
94
@@ -98,8 +99,8 @@ The setup process for the Syslog via AMA connector has two parts:
98
99
The setup process for the CEF via AMA connector has two parts:
99
100
100
101
1.**Install the Azure Monitor Agent and create a Data Collection Rule (DCR)**.
101
-
-[Using the Azure portal](?tabs=portal#install-the-ama-and-create-a-data-collection-rule-dcr)
102
-
-[Using the Azure Monitor Logs Ingestion API](?tabs=api#install-the-ama-and-create-a-data-collection-rule-dcr)
102
+
-[Using the Azure portal](?tabs=cef%2Cportal#install-the-ama-and-create-a-data-collection-rule-dcr)
103
+
-[Using the Azure Monitor Logs Ingestion API](?tabs=cef%2Capi#install-the-ama-and-create-a-data-collection-rule-dcr)
103
104
104
105
1.[**Run the "installation" script**](#run-the-installation-script) on the log forwarder to configure the Syslog daemon to listen for messages from other machines, and to open the necessary local ports.
105
106
@@ -113,9 +114,9 @@ The setup process for the CEF via AMA connector has two parts:
| Any role that includes the action<br>*Microsoft.Resources/deployments/\**| <li>Subscription<li>Resource group<li>Existing data collection rule | To deploy Azure Resource Manager templates |
118
-
|[Monitoring Contributor](../role-based-access-control/built-in-roles.md)| <li>Subscription<li>Resource group<li>Existing data collection rule | To create or edit data collection rules |
119
+
|[Monitoring Contributor](../role-based-access-control/built-in-roles/monitor.md#monitoring-contributor)| <li>Subscription<li>Resource group<li>Existing data collection rule | To create or edit data collection rules |
119
120
120
121
#### Log forwarder prerequisites
121
122
@@ -142,15 +143,16 @@ Using the same facility for both Syslog and CEF messages may result in data inge
142
143
To avoid this scenario, use one of these methods:
143
144
144
145
-**If the source device enables configuration of the target facility**: On each source machine that sends logs to the log forwarder in CEF format, edit the Syslog configuration file to remove the facilities used to send CEF messages. This way, the facilities sent in CEF won't also be sent in Syslog. Make sure that each DCR you configure in the next steps uses the relevant facility for CEF or Syslog respectively.
145
-
-**If changing the facility for the source appliance isn't applicable**: Use an ingest time transformation to filter out CEF messages from the Syslog stream to avoid duplication. The data will be sent twice from the collector machine to the workspace:
146
+
147
+
To see an example of how to arrange a DCR to ingest both Syslog and CEF messages from the same agent, go to [Syslog and CEF streams in the same DCR](#syslog-and-cef-streams-in-the-same-dcr) later in this article.
148
+
149
+
-**If changing the facility for the source appliance isn't applicable**: Use an ingest time transformation to filter out CEF messages from the Syslog stream to avoid duplication, as shown in the query example below. The data will be sent twice from the collector machine to the workspace.
146
150
147
151
```kusto
148
152
source |
149
153
where ProcessName !contains "CEF"
150
154
```
151
155
152
-
For details on how to arrange a DCR to ingest both Syslog and CEF messages from the same agent, see [Syslog and CEF streams in the same DCR](#syslog-and-cef-streams-in-the-same-dcr) later in this article.
153
-
154
156
#### Log forwarder security considerations
155
157
156
158
Make sure to configure the machine's security according to your organization's security policy. For example, you can configure your network to align with your corporate network security policy and change the ports and protocols in the daemon to align with your requirements. To improve your machine security configuration, [secure your VM in Azure](../virtual-machines/security-policy.md), or review these [best practices for network security](../security/fundamentals/network-best-practices.md).
@@ -165,16 +167,16 @@ If your devices are sending Syslog and CEF logs over TLS (because, for example,
165
167
# [Syslog](#tab/syslog)
166
168
167
169
You can perform this step in one of two ways:
168
-
- Deploy and configure the **Syslog via AMA** data connector in the [Microsoft Sentinel portal](?tabs=portal#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs per workspace. The AMA will be installed automatically on the VMs you select in the connector configuration.
170
+
- Deploy and configure the **Syslog via AMA** data connector in the [Microsoft Sentinel portal](?tabs=syslog%2Cportal#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs per workspace. The AMA will be installed automatically on the VMs you select in the connector configuration.
169
171
**—OR—**
170
-
- Send HTTP requests to the [Logs Ingestion API](?tabs=api#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs. This option is more flexible than the portal. For example, with the API, you can filter by specific log levels, where with the UI, you can only select a minimum log level. The downside is that you have to manually install the Azure Monitor Agent on the log forwarder before creating a DCR.
172
+
- Send HTTP requests to the [Logs Ingestion API](?tabs=syslog%2Capi#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs. This option is more flexible than the portal. For example, with the API, you can filter by specific log levels, where with the UI, you can only select a minimum log level. The downside is that you have to manually install the Azure Monitor Agent on the log forwarder before creating a DCR.
171
173
172
174
# [CEF](#tab/cef)
173
175
174
176
You can perform this step in one of two ways:
175
-
- Deploy and configure the **Common Event Format (CEF) via AMA** data connector in the [Microsoft Sentinel portal](?tabs=portal#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs per workspace. The AMA will be installed automatically on the VMs you select in the connector configuration.
177
+
- Deploy and configure the **Common Event Format (CEF) via AMA** data connector in the [Microsoft Sentinel portal](?tabs=cef%2Cportal#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs per workspace. The AMA will be installed automatically on the VMs you select in the connector configuration.
176
178
**—OR—**
177
-
- Send HTTP requests to the [Logs Ingestion API](?tabs=api#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs. This option is more flexible than the portal. For example, with the API, you can filter by specific log levels, where with the UI, you can only select a minimum log level. The downside is that you have to manually install the Azure Monitor Agent on the log forwarder before creating a DCR.
179
+
- Send HTTP requests to the [Logs Ingestion API](?tabs=cef%2Capi#install-the-ama-and-create-a-data-collection-rule-dcr). With this setup, you can create, manage, and delete DCRs. This option is more flexible than the portal. For example, with the API, you can filter by specific log levels, where with the UI, you can only select a minimum log level. The downside is that you have to manually install the Azure Monitor Agent on the log forwarder before creating a DCR.
178
180
179
181
---
180
182
@@ -557,18 +559,3 @@ The "installation" script doesn't actually install anything, but it configures t
In this article, you learned how to set up data ingestion from security devices and appliances that support CEF over Syslog, using the **Common Event Format (CEF) via AMA** connector.
564
-
565
-
- Explore in greater depth how to [collect CEFor Syslog logs with the Azure Monitor Agent](../azure-monitor/agents/data-collection-syslog.md), including how to configure Syslog and create a DCR.
566
-
- See other articles about ingesting CEFand Syslog logs:
567
-
- [Stream logs in both the CEFand Syslog format](connect-cef-syslog.md)
568
-
- [Options for streaming logs in the CEFand Syslog format to Microsoft Sentinel](connect-cef-syslog-options.md)
569
-
570
-
571
-
To learn more about Microsoft Sentinel, see the following articles:
572
-
- Learn how to [get visibility into your data, and potential threats](get-visibility.md).
573
-
- Get started [detecting threats with Microsoft Sentinel](detect-threats-built-in.md).
574
-
- [Use workbooks](monitor-your-data.md) to monitor your data.
0 commit comments