Sep 02 2018
05:04 AM
- last edited on
Apr 07 2022
05:27 PM
by
TechCommunityAP
Sep 02 2018
05:04 AM
- last edited on
Apr 07 2022
05:27 PM
by
TechCommunityAP
Hello Community,
Whenever I attempt to run the following Log Analytic query in Azure Log Analytics I get the following error:
'where' operator: Failed to resolve table or column expression named 'SecurityEvent'
I think it's because I need to enable 'SecurityEvent' in Log Analytics but I'm not sure. I was wondering if someone could provide a guide;
SecurityEvent
| where AccountType == "User" and EventID == 4625 and TimeGenerated > ago(6h)
| summarize IPCount = dcount(IpAddress), makeset(IpAddress) by Account
| where IPCount > 5
| sort by IPCount desc
Any ideas would be much appreciated.
Cheers
Sep 02 2018 06:12 AM
The Security and Compliance solution has to be added to log security events.
Sep 02 2018 06:53 AM
Hi Travis,
Thanks for getting in touch.
Can you let me know how to add the Security and Compliance solution to the log security events?
Will I then be able to get a result from the script from Log Analytics?
Cheers
Sep 02 2018 06:56 AM
Travis,
The reason I asked how to " add the Security and Compliance solution to the log security events?" is because I believe I have already added it. However, when I run the query I get the same error
Sep 02 2018 09:04 AM
SolutionI posted a video with a walkthrough on log collection setup. The quick version is to go into the Log Analytics workspace in Azure, Go to Workspace Overview and Add. Scroll down to the Security and Compliance solution.
You could also try going into Logs (Preview) for Advanced Log Analytics and check what shows in the Schema.
http://www.ciraltos.com/azure-oms-step-by-step-log-collection-setup/
Sep 03 2018 07:02 AM
Hi Travis,
I haven't checked out the video yet, but just wanted to say thanks.
I will check it out later this afternoon.
Cheers
Sep 03 2018 07:54 AM
Hi Travis,
Thanks Travis
Sep 04 2018 07:40 AM
Hello Travis,
I tried to access the link you provided for the first time today, but the site appears to be down.
Can you provide another link?
If I don't hear from you I'll submit another question, as I'm not sure if you'll see this once it has been answered.
Cheers
Sep 04 2018 11:36 AM
Sorry about that. My site is hosted in the Azure South Central region and that seems to be offline this morning. Here is a link to the video in YouTube. https://www.youtube.com/watch?v=OI2iUIh340U&list=PLnWpsLZNgHzVXXyN9a0jm9xNNDrikHf8I&index=3&t=0s
Sep 04 2018 12:05 PM
Hi Travis,
Fantastic video .. very informative. Thanks
Unfortunately, the video doesn't cover adding Security Policy to allow the the following query from being added with the error:
'where' operator: Failed to resolve table or column expression named 'SecurityEvent'.
SecurityEvent
| where TimeGenerated > ago(30m)
| count
Dec 16 2021 09:50 AM
@Carlton Patterson select scope beside run query button and scope to your resource.
Sep 02 2018 09:04 AM
SolutionI posted a video with a walkthrough on log collection setup. The quick version is to go into the Log Analytics workspace in Azure, Go to Workspace Overview and Add. Scroll down to the Security and Compliance solution.
You could also try going into Logs (Preview) for Advanced Log Analytics and check what shows in the Schema.
http://www.ciraltos.com/azure-oms-step-by-step-log-collection-setup/