Skip to content

Commit af62f10

Browse files
authored
Update summary-rules.md
1 parent 63b9fe3 commit af62f10

File tree

1 file changed

+1
-59
lines changed

1 file changed

+1
-59
lines changed

articles/sentinel/summary-rules.md

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -270,65 +270,7 @@ This procedure describes a sample process for using summary rules with [auxiliar
270270
271271
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).
272272
273-
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:
274-
275-
- Replace placeholder values with your own values for the custom table and Microsoft Entra app you created earlier.
276-
- 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:
277-
278-
:::row:::
279-
:::column:::
280-
- `Message`
281-
- `TimeGenerated`
282-
- `Activity`
283-
- `LogSeverity`
284-
- `CefVersion`
285-
:::column-end:::
286-
:::column:::
287-
- `DeviceVendor`
288-
- `DeviceProduct`
289-
- `DeviceVersion`
290-
- `DeviceEventClassID`
291-
:::column-end:::
292-
:::row-end:::
293-
294-
```json
295-
input {
296-
syslog {
297-
port => 514
298-
codec => cef
299-
}
300-
}
301-
filter{
302-
ruby {
303-
code => "
304-
require 'json'
305-
new_hash = event.to_hash
306-
event.set('Message', new_hash.to_json)
307-
"
308-
}
309-
mutate{
310-
rename => {"name" => "Activity"}
311-
rename => {"severity" => "LogSeverity"}
312-
rename => {"cefVersion" => "CefVersion"}
313-
rename => {"deviceVendor" => "DeviceVendor"}
314-
rename => {"deviceProduct" => "DeviceProduct"}
315-
rename => {"deviceVersion" => "DeviceVersion"}
316-
rename => {"deviceEventClassId" => "DeviceEventClassID"}
317-
rename => {"@timestamp" => "TimeGenerated"}
318-
add_field => {"LogstashVersion" => "${LOGSTASH_VERSION}"}
319-
}
320-
}
321-
output {
322-
microsoft-sentinel-log-analytics-logstash-output-plugin {
323-
client_app_Id => "00000000-0000-0000-0000-000000000000"
324-
client_app_secret => "00000000-0000-0000-0000-000000000000"
325-
tenant_id => "000000000-0000-0000-0000-000000000000"
326-
data_collection_endpoint => "https://xxxxxxxxxxxxx.ingest.monitor.azure.com"
327-
dcr_immutable_id => "dcr-x-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
328-
dcr_stream_name => "Custom-LS-CefAux_CL"
329-
}
330-
}
331-
```
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.
332274
333275
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:
334276

0 commit comments

Comments
 (0)