Skip to content

Commit e66cdba

Browse files
Merge pull request #282680 from batamig/patch-435
adding deploy to azure button
2 parents b687317 + af62f10 commit e66cdba

File tree

1 file changed

+4
-60
lines changed

1 file changed

+4
-60
lines changed

articles/sentinel/summary-rules.md

Lines changed: 4 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ This procedure describes a sample process for using summary rules with [auxiliar
257257
258258
1. Set up your custom CEF connector from Logstash:
259259
260-
1. Deploy our [ARM template](https://aka.ms/DeployCEFresources) to your Microsoft Sentinel workspace to create a custom table with data collection rules (DCR) and a data collection endpoint (DCE).
260+
1. Deploy the following ARM template to your Microsoft Sentinel workspace to create a custom table with data collection rules (DCR) and a data collection endpoint (DCE):
261+
262+
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2FAzure-Sentinel%2Fmaster%2FDataConnectors%2Fmicrosoft-sentinel-log-analytics-logstash-output-plugin%2Fexamples%2Fauxiliry-logs%2Farm-template%2Fdeploy-dcr-dce-cef-table.json)
261263
262264
1. Note the following details from the ARM template output:
263265
@@ -268,65 +270,7 @@ This procedure describes a sample process for using summary rules with [auxiliar
268270
269271
1. Create a Microsoft Entra application, and note the application's **Client ID** and **Secret**. For more information, see [Tutorial: Send data to Azure Monitor Logs with Logs ingestion API (Azure portal)](/azure/azure-monitor/logs/tutorial-logs-ingestion-portal).
270272
271-
1. Use the following sample script to update your Logstash configuration file. The updates configure Logstash to send CEF logs to the custom table created by the ARM template, transforming JSON data to DCR format. In this script:
272-
273-
- Replace placeholder values with your own values for the custom table and Microsoft Entra app you created earlier.
274-
- Add the Logstash ['prune' filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-prune.html) to your filter section to include only the following field names in your events:
275-
276-
:::row:::
277-
:::column:::
278-
- `Message`
279-
- `TimeGenerated`
280-
- `Activity`
281-
- `LogSeverity`
282-
- `CefVersion`
283-
:::column-end:::
284-
:::column:::
285-
- `DeviceVendor`
286-
- `DeviceProduct`
287-
- `DeviceVersion`
288-
- `DeviceEventClassID`
289-
:::column-end:::
290-
:::row-end:::
291-
292-
```json
293-
input {
294-
syslog {
295-
port => 514
296-
codec => cef
297-
}
298-
}
299-
filter{
300-
ruby {
301-
code => "
302-
require 'json'
303-
new_hash = event.to_hash
304-
event.set('Message', new_hash.to_json)
305-
"
306-
}
307-
mutate{
308-
rename => {"name" => "Activity"}
309-
rename => {"severity" => "LogSeverity"}
310-
rename => {"cefVersion" => "CefVersion"}
311-
rename => {"deviceVendor" => "DeviceVendor"}
312-
rename => {"deviceProduct" => "DeviceProduct"}
313-
rename => {"deviceVersion" => "DeviceVersion"}
314-
rename => {"deviceEventClassId" => "DeviceEventClassID"}
315-
rename => {"@timestamp" => "TimeGenerated"}
316-
add_field => {"LogstashVersion" => "${LOGSTASH_VERSION}"}
317-
}
318-
}
319-
output {
320-
microsoft-sentinel-log-analytics-logstash-output-plugin {
321-
client_app_Id => "00000000-0000-0000-0000-000000000000"
322-
client_app_secret => "00000000-0000-0000-0000-000000000000"
323-
tenant_id => "000000000-0000-0000-0000-000000000000"
324-
data_collection_endpoint => "https://xxxxxxxxxxxxx.ingest.monitor.azure.com"
325-
dcr_immutable_id => "dcr-x-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
326-
dcr_stream_name => "Custom-LS-CefAux_CL"
327-
}
328-
}
329-
```
273+
1. Use our [sample script](https://github.com/Azure/Azure-Sentinel/blob/master/DataConnectors/microsoft-sentinel-log-analytics-logstash-output-plugin/examples/auxiliry-logs/config/bronze.conf) to update your Logstash configuration file. The updates configure Logstash to send CEF logs to the custom table created by the ARM template, transforming JSON data to DCR format. In this script, make sure to replace placeholder values with your own values for the custom table and Microsoft Entra app you created earlier.
330274
331275
1. Check to see that your CEF data is flowing from Logstash as expected. For example, in Microsoft Sentinel, go to the **Logs** page and run the following query:
332276

0 commit comments

Comments
 (0)