Users Added Or Removed From A Local Group (Within A Specific Timeframe)
In this SIEM visualization example, we aim to create a visualization to monitor user additions or removals from the local “Administrators” group from March 5th 2023 to date.
Our visualization will be based on the following Windows event logs.
- 4732: A member was added to a security-enabled local group
- 4733: A member was removed from a security-enabled local group
Navigate to the bottom of this section and click on Click here to spawn the target system!.
Navigate to http://[Target IP]:5601, click on the side navigation toggle, and click on “Dashboard”.
A prebaked dashboard should be visible. Let’s click on the “pencil”/edit icon.

Now, to initiate the creation of our first visualization, we simply have to click on the “Create visualization” button.
Upon initiating the creation of our first visualization, the following new window will appear with various options and settings.

There are four things for us to notice on this window:
- A filter option that allows us to filter the data before creating a graph. In this case our goal is to display user additions or removals from the local “Administrators” group. We can use a filter to only consider event IDs that match
4732 – A member was added to a security-enabled local groupand4733 – A member was removed from a security-enabled local group. We can also use a filter to only consider 4732 and 4733 events where the local group is the “Administrators” one. - This field indicates the data set (index) that we are going to use. It is common for data from various infrastructure sources to be separated into different indices, such as network, Windows, Linux, etc. In this particular example, we will specify
windows*in the “Index pattern”. - This search bar provides us with the ability to double-check the existence of a specific field within our data set, serving as another way to ensure that we are looking at the correct data. We are interested in the
user.name.keywordfield. We can use the search bar to quickly perform a search and verify if this field is present and discovered within our selected data set. This allows us to confirm that we are accessing the desired field and working with accurate data. - Lastly, this drop-down menu enables us to select the type of visualization we want to create. The default option displayed in the earlier image is “Bar vertical stacked”. If we click on that button, it will reveal additional available options (image redacted as not all options fit on the screen). From this expanded list, we can choose the desired visualization type that best suits our requirements and data presentation needs.
For this visualization, let’s select the “Table” option. After selecting the “Table”, we can proceed to click on the “Rows” option. This will allow us to choose the specific data elements that we want to include in the table view.

Let’s configure the “Rows” settings as follows.

Moving forward, let’s close the “Rows” window and proceed to enter the “Metrics” configuration.

In the “Metrics” window, let’s select “count” as the desired metric.

One final addition to the table is to include some more “Rows” settings to enhance our understanding.
- Which user was added to or removed from the group? (
winlog.event_data.MemberSid.keywordfield) - To which group was the addition or the removal performed? (double-checking that it is the “Administrators” one) (
group.name.keywordfield) - Was the user added to or removed from the group? (
event.action.keywordfield) - On which machine did the action occur? (
host.name.keywordfield)
Click on “Save and return”, and you will observe that the new visualization is added to the dashboard.
As discussed, we want to monitor user additions or removals from the local “Administrators” group within a specific timeframe (March 5th 2023 to date).
We can narrow the scope of our visualization as follows.






