WEBVTT

00:00:00.240 --> 00:00:02.040
Hello, and welcome back.

00:00:02.040 --> 00:00:03.040
In this clip,

00:00:03.040 --> 00:00:07.350
we will validate Winlogbeat and ship an event log data to our Elastic cluster.

00:00:07.940 --> 00:00:11.440
I'll start by using the Kibana web UI and exploring index

00:00:11.440 --> 00:00:14.930
management. Then, we'll move to the Discover tab and see

00:00:14.930 --> 00:00:16.160
if we're receiving events.

00:00:17.140 --> 00:00:20.440
An essential part of the validation process is ensuring all

00:00:20.440 --> 00:00:23.160
endpoints send logs to our Elasticsearch cluster.

00:00:23.640 --> 00:00:26.850
If we have gaps, there's a potential to miss security events.

00:00:27.540 --> 00:00:30.760
I'll wrap up the lab by showing a method for verifying your Winlogbeat

00:00:30.760 --> 00:00:36.830
configuration matches what we see in Elasticsearch. On your screen is the Kibana

00:00:36.830 --> 00:00:41.540
web UI. I'm going to navigate to the Index Management section, which can be

00:00:41.540 --> 00:00:46.640
found under the stack Management link. In version 8 of Elasticsearch, we no

00:00:46.640 --> 00:00:49.060
longer have Winlogbeat indices by default.

00:00:49.840 --> 00:00:53.440
Instead, data streams are used. Data streams allow you to

00:00:53.440 --> 00:00:57.350
have a single named resource you can reference, but they use

00:00:57.350 --> 00:00:58.860
one or more back‑end indices.

00:01:00.040 --> 00:01:04.269
The Winlogbeat agents on our endpoints should be sending event log data to

00:01:04.269 --> 00:01:09.040
this data stream, so we're looking good so far. Since we're here, let's take

00:01:09.040 --> 00:01:13.090
a quick look at the back‑end index. We can see some status details, such as

00:01:13.090 --> 00:01:15.060
replicas and a storage consumption.

00:01:15.640 --> 00:01:19.170
We can also see a few thousand documents in the data stream, so we're likely

00:01:19.170 --> 00:01:22.560
receiving data, but let's go to the Discover tab and verify.

00:01:24.940 --> 00:01:29.020
Nice! As shown by the chart, we have a steady flow of

00:01:29.020 --> 00:01:32.590
events over the last few days. Notice we had an index

00:01:32.590 --> 00:01:34.550
pattern automatically created for us.

00:01:35.340 --> 00:01:40.460
Now, I'm curious to see how many of the five Windows hosts have sent event logs.

00:01:41.040 --> 00:01:45.150
I can search for a host field and then select the agent.hostname field.

00:01:45.940 --> 00:01:49.960
We can see four systems and the distribution of logs by percentage.

00:01:51.040 --> 00:01:51.360
Now,

00:01:51.740 --> 00:01:55.220
if we had more than four systems, which we do in this instance,

00:01:55.420 --> 00:01:57.560
we can pivot to the Visualization section.

00:01:58.540 --> 00:02:02.500
I like using a table here, and we get to see the spread consistent of each

00:02:02.500 --> 00:02:06.160
host and number of event records over the last 15 days.

00:02:07.540 --> 00:02:11.280
This list of hostnames represents unique systems that have sent

00:02:11.290 --> 00:02:15.920
event logs to Elasticsearch. Using my asset inventory, I can

00:02:15.920 --> 00:02:19.560
compare the list you see on the screen and confirm or deny which

00:02:19.560 --> 00:02:21.460
systems are sending logs to the SIEM.

00:02:22.540 --> 00:02:26.360
For longer lists, you may benefit from sorting. Now,

00:02:26.840 --> 00:02:30.210
I know you're probably thinking, comparing 5 systems to a list

00:02:30.220 --> 00:02:34.160
is trivial, what about 5 or 10,000 systems?

00:02:34.640 --> 00:02:36.260
Okay, fair point.

00:02:36.940 --> 00:02:40.770
Then we can use a metric aggregation to count how many endpoints are

00:02:40.770 --> 00:02:45.600
reporting back. First, I need to remove the record count and replace it

00:02:45.600 --> 00:02:50.370
with the agent hostname. Then, we see the aggregated total of endpoints

00:02:50.670 --> 00:02:52.660
that sent logs to the Elasticsearch cluster.

00:02:54.040 --> 00:02:57.990
In my case, there are only five systems, but if you have several thousand,

00:02:57.990 --> 00:03:00.750
then that particular number would be reflected here.

00:03:01.940 --> 00:03:05.240
If you have a lot of missing systems, adjust the timeframe you're

00:03:05.240 --> 00:03:09.320
using. Some systems could be powered down or have a misconfiguration.

00:03:09.940 --> 00:03:13.130
There are many approaches to identifying missing systems, but that's

00:03:13.130 --> 00:03:14.460
outside the scope of this course.

00:03:15.140 --> 00:03:18.890
Our last task for this clip is to display a sample of the unique

00:03:18.890 --> 00:03:23.480
Windows event IDs sent to Elasticsearch. Winlogbeat uses the

00:03:23.480 --> 00:03:27.330
Elastic Common Schema to normalize fields in the event data, so

00:03:27.330 --> 00:03:30.370
event ID becomes event code. Okay,

00:03:30.540 --> 00:03:34.460
so I'm going to drag and drop the event.code field and, by default,

00:03:34.520 --> 00:03:39.350
we only see a few event IDs. Next, I'll modify the number of values

00:03:39.350 --> 00:03:43.240
displayed to 50 so we get a few more values to look at and compare

00:03:43.240 --> 00:03:44.260
with our configuration.

00:03:45.740 --> 00:03:49.760
I'm going to shift gears and bring up a section of the Winlogbeat configuration.

00:03:51.040 --> 00:03:51.660
There we go.

00:03:52.340 --> 00:03:56.590
The general idea is to ensure that the event IDs in this file show

00:03:56.590 --> 00:04:00.980
up in the list we had in Kibana. I would recommend triggering some

00:04:00.980 --> 00:04:03.590
of the log events in a controlled environment so you know

00:04:03.590 --> 00:04:04.860
everything works as intended.

00:04:05.640 --> 00:04:06.420
Additionally,

00:04:06.630 --> 00:04:10.340
you will see later in this course some Windows event IDs require

00:04:10.350 --> 00:04:13.760
additional configuration before generating the event log.

00:04:14.840 --> 00:04:17.660
That's all for this demo. See you in the following clip.
