-: Welcome back.
So in this lesson, we are going to discuss
understanding custom logging options.
So what that means is I'm going to walk you
through the process of how we collect those custom logs
and then I'm going to hop into the portal
and I'm going to actually show that to you live.
And before we jump into the lesson, huh?
See the picture on the right?
Logs, custom, yeah, all right.
So the jokes aren't going to get any better,
but with that, let's jump into the lesson.
All right, so there's 5 and a bit, right?
So it all starts with Log Analytics.
We're going to have to have a Log Analytics account
set up and configured.
If you have that set up, hey,
you got your first half step done.
There's 5 more steps after that.
So basically we're going to upload
and we're going to parse a custom sample log.
So we're going to upload a file
that Log Analytics can then parse to do something with.
So what we're going to use is File Wizard for that.
Then we're going to add our log collection paths.
So Log Analytics needs to know where it can go
on your computer to find those custom logs in the future.
So we're just going to simply type in and explain
where those log paths are located.
We're going to provide a name and description,
so let's just say Tim and Lord of the Log Files
for a description.
And then 4, we're going to double check our work.
And then 5, we're just going to parse custom log entries.
So basically once we have those custom logs being run,
we can parse that or break out that data
into a more manageable set of entries
that we can then run queries on.
And that parse query down there at the bottom,
it could be whatever you want.
It's going to be very specific to your log,
but just remember that you can
parse your custom log entries
and that's typically the last step in this process.
So with that, let's jump over into the portal
and let me actually show this to you live.
All right, so here we find ourselves in Log Analytics.
And in here I have scrolled down and clicked on Custom logs,
which is where we're going to start.
So we have our Log Analytics, that's our half step,
and now I'm going to add a custom log.
It all starts with selecting a sample log,
so I'm going to click.
So let's just choose this file here.
There we go, now we have our file and it has been uploaded.
Step 1 complete.
Next, we're going to choose our delimiter.
I can either pick a timestamp
or I can click on one of the records,
so we'll just choose this one for now.
Again, this is more for demonstration purposes
than anything.
Next we're going to give our collection path.
So we want to choose our selection path.
So let's just go ahead and use the sample,
but we would choose whatever it is that you need here.
So we choose our collection path,
and so this is our step 2.
Click on Next.
This is Tim and Lord of the Log Files, right?
There we go.
And then step 4, double check your work.
So we would go through and just simply create
and it's going to create, and there you go, that fast.
There is Tim, our brand new custom log.
So it's really that simple.
So with that, let's jump back over here
and run through just a couple of points to remember.
1. Do you remember the service?
2. Do you remember the 5 steps?
That's pretty much it.
If you got those 2 things down,
you're definitely good to go on to the next service.
I wouldn't even spend a whole lot of time
on memorizing the 5 steps.
Just sort of remember the basics of, hey, Log Analytics,
we can upload a custom file using the wizard.
We can pull that in.
Once we have that file in,
we can parse it however we need to.
You got that down? Now you understand
how custom logging options work.