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
title: Deploy the agent to connect CEF data to Azure Sentinel Preview| Microsoft Docs
2
+
title: Deploy the log forwarder to connect CEF data to Azure Sentinel | Microsoft Docs
3
3
description: Learn how to deploy the agent to connect CEF data to Azure Sentinel.
4
4
services: sentinel
5
5
documentationcenter: na
@@ -13,36 +13,117 @@ ms.devlang: na
13
13
ms.topic: conceptual
14
14
ms.tgt_pltfrm: na
15
15
ms.workload: na
16
-
ms.date: 11/26/2019
16
+
ms.date: 04/19/2020
17
17
ms.author: yelevin
18
18
19
19
---
20
-
# Step 1: Deploy the agent
20
+
# Step 1: Deploy the log forwarder
21
21
22
22
23
-
In this step, you need to select the Linux machine that will act as a proxy between Azure Sentinel and your security solution. You will have to run a script on the proxy machine that:
24
-
- Installs the Log Analytics agent and configures it as needed to listen for Syslog messages.
25
-
- Configures the Syslog daemon to listen to Syslog messages using TCP port 514 and then forwards only the CEF messages to the Log Analytics agent using TCP port 25226.
26
-
- Sets the Syslog agent to collect the data and send it securely to Azure Sentinel, where it is parsed and enriched.
23
+
In this step, you will designate and configure the Linux machine that will forward the logs from your security solution to your Azure Sentinel workspace. This machine can be a physical or virtual machine in your on-premises environment, an Azure VM, or a VM in another cloud. Using the link provided, you will run a script on the designated machine that performs the following tasks:
24
+
- Installs the Log Analytics agent for Linux (also known as the OMS agent) and configures it for the following purposes:
25
+
- listening for CEF messages from the built-in Linux Syslog daemon on TCP port 25226
26
+
- sending the messages securely over TLS to your Azure Sentinel workspace, where they are parsed and enriched
27
+
28
+
- Configures the built-in Linux Syslog daemon (rsyslog.d/syslog-ng) for the following purposes:
29
+
- listening for Syslog messages from your security solutions on TCP port 514
30
+
- forwarding only the messages it identifies as CEF to the Log Analytics agent on localhost using TCP port 25226
27
31
28
-
## Deploy the agent
32
+
## Prerequisites
33
+
34
+
- You must have elevated permissions (sudo) on your designated Linux machine.
35
+
- You must have python installed on the Linux machine.<br>Use the `python -version` command to check.
36
+
- The Linux machine must not be connected to any Azure workspaces before you install the Log Analytics agent.
37
+
38
+
## Run the deployment script
29
39
30
-
1.In the Azure Sentinel portal, click **Data connectors** and select **Common Event Format (CEF)** and then **Open connector page**.
40
+
1.From the Azure Sentinel navigation menu, click **Data connectors**. From the list of connectors, click the **Common Event Format (CEF)**tile, and then the **Open connector page** button on the lower right.
31
41
32
-
1. Under **Install and configure the Syslog agent**, select your machine type, either Azure, other cloud, or on-premises.
33
-
> [!NOTE]
34
-
> Because the script in the next step installs the Log Analytics agent and connects the machine to your Azure Sentinel workspace, make sure this machine is not connected to any other workspace.
35
-
1. You must have elevated permissions (sudo) on your machine. Make sure that you have Python on your machine using the following command: `python –version`
42
+
1. Under **1.2 Install the CEF collector on the Linux machine**, copy the link provided under **Run the following script to install and apply the CEF collector**, or from the text below:
1. Opens port 514 for TCP communication using the syslog configuration file `/etc/rsyslog.conf`.
69
+
70
+
1. Configures the daemon to forward CEF messages to the Log Analytics agent on TCP port 25226, by inserting a special configuration file `security-config-omsagent.conf` into the syslog daemon directory `/etc/rsyslog.d/`.
71
+
72
+
Contents of the `security-config-omsagent.conf` file:
73
+
74
+
:rawmsg, regex, "CEF\|ASA" ~
75
+
*.* @@127.0.0.1:25226
76
+
77
+
1.**Restarting the Syslog daemon**
78
+
79
+
`service rsyslog restart`
80
+
81
+
1.**Setting the Log Analytics agent configuration to listen on port 25226 and forward CEF messages to Azure Sentinel**
82
+
83
+
1. Downloads the configuration from the Log Analytics agent GitHub repository<br>
1.**Downloading and installing the Log Analytics agent:**
93
+
94
+
- Downloads the installation script for the Log Analytics (OMS) Linux agent<br>`wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh`
1. Opens port 514 for TCP communication using the syslog configuration file `/etc/syslog-ng/syslog-ng.conf`.
101
+
102
+
1. Configures the daemon to forward CEF messages to the Log Analytics agent on TCP port 25226, by inserting a special configuration file `security-config-omsagent.conf` into the syslog daemon directory `/etc/syslog-ng/conf.d/`.
103
+
104
+
Contents of the `security-config-omsagent.conf` file:
In this document, you learned how to connect CEF appliances to Azure Sentinel. To learn more about Azure Sentinel, see the following articles:
126
+
In this document, you learned how to deploy the Log Analytics agent to connect CEF appliances to Azure Sentinel. To learn more about Azure Sentinel, see the following articles:
46
127
- Learn how to [get visibility into your data, and potential threats](quickstart-get-visibility.md).
47
128
- Get started [detecting threats with Azure Sentinel](tutorial-detect-threats.md).
0 commit comments