Skip to content

Commit 5b7c402

Browse files
committed
prune filter
1 parent 4a18eb6 commit 5b7c402

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

articles/sentinel/summary-rules.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ This procedure describes a sample process for using summary rules with [auxiliar
258258
1. Set up your custom CEF connector from Logstash:
259259
260260
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).
261-
262261
263262
1. Note the following details from the ARM template output:
264263
@@ -269,7 +268,26 @@ This procedure describes a sample process for using summary rules with [auxiliar
269268
270269
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).
271270
272-
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. Make sure to replace placeholder values with your own values for the custom table and Microsoft Entra app you created earlier.
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 a 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:::
273291
274292
```json
275293
input {
@@ -297,9 +315,6 @@ This procedure describes a sample process for using summary rules with [auxiliar
297315
rename => {"@timestamp" => "TimeGenerated"}
298316
add_field => {"LogstashVersion" => "${LOGSTASH_VERSION}"}
299317
}
300-
prune {
301-
whitelist_names => [ "Message", "TimeGenerated", "Activity", "LogSeverity", "CefVersion", "DeviceVendor", "DeviceProduct", "DeviceVersion", "DeviceEventClassID"]
302-
}
303318
}
304319
output {
305320
microsoft-sentinel-log-analytics-logstash-output-plugin {

0 commit comments

Comments
 (0)