# Help with aggregate filter

**URL:** <https://discuss.elastic.co/t/help-with-aggregate-filter/113589>\
**Category:** Logstash\
**Created:** [December 29, 2017, 12:30pm UTC](https://discuss.elastic.co/t/help-with-aggregate-filter/113589 "2017-12-29T12:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mazhar](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@Mazhar](https://discuss.elastic.co/u/Mazhar)\
**Post date:** [December 29, 2017, 12:30pm UTC](https://discuss.elastic.co/t/help-with-aggregate-filter/113589/1 "2017-12-29T12:30:45Z")

</div>

Hi,

I have the following event to which I need to apply aggregation on "Logon ID",

## ------- SAMPLE ----- message:An operation was performed on an object. Subject : Security ID: S-1-5-18 Account Name: JB5VN3$ Account Domain: DMN Logon ID: 0x3E7 Object: Object Server: WMI Object Type: WMI Namespace Object Name: root\cimv2\security\MicrosoftVolumeEncryption Handle ID: 0x0 Operation: Operation Type: Object Access Accesses: Unknown specific access (bit 0) Unknown specific access (bit 1) Access Mask: 0x3 Properties: - Additional Information: Parameter 1: Local Execute (ExecMethod) Parameter 2: root\cimv2\security\MicrosoftVolumeEncryption:\JB5VN3\root\cimv2\security\MicrosoftVolumeEncryption:Win32\_EncryptableVolume.DeviceID="\\?\Volume{5db1b1c2-86a2-477c-a30a-0eef37ba7c31}\"::GetConversionStatus type:wineventlog

I have the following filter defined,  
filter {  
grok {  
match =\> ["message", "%{SECURITYID:security\_id} %{ACCOUNTNAME:account\_name} %{DOMAIN:domain}" %{LOGONID:logon\_id}"]  
}  
aggregate {  
logon\_id =\> "%{login\_id}"  
msg\_txt =\> "%{security\_id} + %{account\_name} + %{domain}"  
push\_map\_as\_event\_on\_timeout =\> true  
}

The aggregation is not working, can somebody guide me

//Mazhar

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 26, 2018, 12:30pm UTC](https://discuss.elastic.co/t/help-with-aggregate-filter/113589/2 "2018-01-26T12:30:55Z")

</div>

Closed on January 26, 2018, 12:30pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
