Is it possible to query DFS Replication Event log via KQL?

Matt Pollock 256 Reputation points
2023-02-09T20:03:06.1333333+00:00

I am new to Azure Monitor and Log Analytics Workspace, and the world of KQL

I'm trying access the DFS Replication event log on my on prem domain controllers, via a KQL query, with a view to setting up a dashboard item in Azure.

All of the DCs have been added to Azure via Azure Arc, and subsequently connected to Azure Monitor

I can successfully connect to the DC's event logs (System, Application, Security) via a KQL query in LAW

In order to connect to the DFS Replication log, I have added a legacy management extension to the LAW and associated it with the DC resources.

I cannot seem to access the event log via a KQL query however.

If I enter the following query, no results are returned

Event 
| where EventLog has "DFS Replication"

Can anybody advise on how to troubleshoot this please?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
525 questions
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 21,546 Reputation points Moderator
    2023-02-14T09:04:32.5833333+00:00

    @Matt Pollock thank you for this query and apologies for the delayed response.

    Please find below some information which should help you regarding this issue.

    1. Log Analytics workspace is used to store the monitoring logs/data collected from agent. Therefore, when you are using KQL queries, you are essentially querying already collected data in the workspace. It does not connect to the agent or VM itself for queries.
    2. There are mainly 2 ways (2 agents) to collect monitoring data from Arc connected VMs, a. the legacy Log Analytics Agent (which is also known as Microsoft Monitoring Agent). b. The currently recommended Azure Monitor Agent
    3. Note that a number of Monitoring solutions for Log Analytics workspace as available here only work with the legacy agent.

    With this information at hand, I would like to understand the following about this issue:

    1. Can you please explain- "I have added a legacy management extension to the LAW.."? If you could provide a link to the referred doc, that should help me understand it better. I assume that it is one of the legacy Solutions which was available with Log Analytics workspace and is no longer available or does not work with the agent that you used to connect your Arc machines to Azure Monitor.
    2. How are you collecting Application, System and security logs? If you are using the newer Azure Monitor Agent, I assume that you have created data collection rules. You could create a similar rule for collecting events from DFS Replication event logs (if they are available in EventViewer of the target machine). --> this is the recommended method
    3. If you have used one of the older solutions which collected DFS replication events using legacy LA agent, and the events are getting collected, the query might need modification. The data collected in LAW is saved as table. In the query, "Event" is one such table which has multiple columns and EventLog would correspond to one such column which contains the name of the event log from which this data was collected. I would suggest looking at the name of the event log in the VM itself, to verify that the name is correct. You could also try changing the Time range for the query as by default it is collected only for last 24 hours and ensure that new logs were added to this event after the monitoring was enabled:

    Hope this helps, In case you are still facing issues querying the data, I please share details as requested in the reply (Agent used, solution/extension enabled etc.) and that will help us assist you accordingly.

    Please click Accept answer and Yes if the reply helped so that it can help others in the community looking for answer to similar questions.


1 additional answer

Sort by: Most helpful
  1. Matt Pollock 256 Reputation points
    2023-02-28T09:50:25.55+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.