Time
23 hours 16 minutes
Difficulty
Intermediate
CEU/CPE
23

Video Transcription

00:00
Hello and welcome back to Cyber Aires. Microsoft Azure Administrator A Z 103 Course, this is Episode 12 Configure Diagnostics and I'm your instructor, Will Carlson
00:10
in today's episode is relatively straightforward. We're gonna be talking about how you configure diagnostic logs,
00:17
uh, and talk a little bit more about the different log types here within Azure
00:22
to get started, we're gonna jump into portal and I want to call out your attention that
00:28
diagnostic logs can be collected both for azure Resource is and also for on premise. Resource is,
00:36
I want to remind you two that there is a difference between logs and Metrix Metrix Air gonna be those things that we talked about in the last video that the date is gonna be collected every minute and they're gonna be on by default for a lot of azure resource is
00:49
logs are gonna be things that need to be configured to be sent in various degrees today. This is gonna be a relatively straightforward deployment because logging is baked into these azure resource is there's also a component of logging more similar to what you experience. When you use a tool like Splunk,
01:07
you have to configure the log recipient and you have to configure the
01:11
device that sending the logs so
01:15
logs are gonna be text or numeric values that aren't created every minute or aren't even created automatically. Logs are gonna be things that are created when an event occurs. So think Lennox sis logs or Windows event logs. Those are great examples of types of locks
01:33
now, specifically to azure. Here
01:36
there are going to be two different types of logs diagnostic logs, which we're gonna be setting up today, and then azure activity logs. So as your activity logs were gonna be those things that we see from the arm a p I any time that we do anything with the R, maybe I it's going toe log that activity as an activity log.
01:56
These are gonna be at the subscription level,
01:57
and by default, they're gonna be retained for 90 days. You can extend this retention if you push those logs over to a storage account or an azure log analytics workspace.
02:09
That's activity logs, but the type of long we're going to talk about today, our diagnostic logs and these are gonna be configured on each resource.
02:17
The logs it connect collects air gonna be unique to the particular resource that we're talking about and not our resource is support diagnostic logs. So the first thing we're gonna do is look, a diagnostic logs on some out of the box.
02:31
Resource is so we're gonna go to resource groups.
02:36
We're gonna click on I T Resource Group.
02:38
We're gonna go down here to diagnostic settings
02:42
and these are the resource is that I can turn on diagnostic logging for without any other intervention on my part.
02:50
You can see that we already have the public I p address set too long things. So let's look at that real quickly.
02:58
Let's edit this city so I can see with a public I p address. It's going to I'm archiving this to a storage account that I've set up,
03:07
and it's sending de dos logs and all of the metrics as faras ingress and egress are going to this long as well.
03:16
Now let's go back. Go and look at some other
03:19
diagnostic logs that we could set up and actually set one up from scratch.
03:25
Look out here, come back to diagnostic logs and let's go ahead and set up diagnostic logs on this network interface,
03:34
We're gonna add a diagnostic setting.
03:38
When a name this
03:40
Nick Internal.
03:43
I don't want ark have this to a storage account, as I did before going to select what storage account I wanted to go to.
03:50
Gonna select that one that's in this resource group already.
03:53
And then I can select
03:55
to send all metrics. And then how many days now? Something worth mentioned here is that zero is gonna keep these indefinitely until I run out of storage. So if I don't want to do that, I can set this to store these logs for 10 days or whatever numbers I'd like.
04:11
Now you can stream to an event tub, which is not necessarily relevant for a Z 103 But it's a way to earn a place in azure to send a lot of events to and have them ultimately processed. You can also send them to log analytics. We'll be looking at that in a later episode, and that's the Log analytics workspace. But for now,
04:29
we're gonna go ahead and have these internal nick
04:31
logs sent to a storage account.
04:34
I can hit save,
04:38
and that's really all there is to it. So if I go back out here to the resource group and into the IittIe resource group
04:45
back down here into diagnostic settings,
04:47
I can see that I've been able diagnostic logs on this particular network interface. Also, what we showed is that this network interface had very different logs available to be sent. Then the public interface did as well.
05:01
So in today's episode, we talked about configuring diagnostic logs on those things that are simple to do an azure. But based on a point and click, these things already have logging
05:13
functionality built into them. It just has to be enabled. And you get to that via diagnostic settings
05:19
we can set where they go, we can store them in a number of different places, and it's really gonna be different based on what particular resource it is that we're gonna be setting up those diagnostic logs on
05:30
coming up next. We're gonna be talking about a really powerful monitoring feature here in Azure about alerts and action groups, and they're gonna help us really keep tabs on what's going on in our azure ecosystem, and I think you'll find that there are a lot of ways that you can ultimately be notified about these alerts.
05:48
Thank you so much for joining me today, and I'm really looking forward to the next episode.

Up Next

AZ-103 Microsoft Azure Administrator

This Microsoft Azure AZ-103 Certification training course teaches students to perform tasks like managing Azure subscriptions and resources, implementing and managing storage, deploying and managing virtual machines (VM) and networks, and managing identities!

Instructed By

Instructor Profile Image
Will Carlson
Director of IT and Cybersecurity
Senior Instructor