Skip to content

Commit df40107

Browse files
Merge pull request #224437 from shayoniseth/patch-126
Update data-collection-rule-azure-monitor-agent.md
2 parents fd5fc52 + e80951d commit df40107

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/azure-monitor/agents/data-collection-rule-azure-monitor-agent.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ When you paste the XPath query into the field on the **Add data source** screen,
131131

132132
[ ![Screenshot that shows the steps to create an XPath query in the Windows Event Viewer.](media/data-collection-rule-azure-monitor-agent/data-collection-rule-extract-xpath.png) ](media/data-collection-rule-azure-monitor-agent/data-collection-rule-extract-xpath.png#lightbox)
133133

134-
For a list of limitations in the XPath supported by Windows event log, see [XPath 1.0 limitations](/windows/win32/wes/consuming-events#xpath-10-limitations).
135134

136135
> [!TIP]
137136
> You can use the PowerShell cmdlet `Get-WinEvent` with the `FilterXPath` parameter to test the validity of an XPath query locally on your machine first. The following script shows an example:
@@ -155,9 +154,12 @@ Examples of using a custom XPath to filter events:
155154
| Collect all Critical, Error, Warning, and Information events from the System event log except for Event ID = 6 (Driver loaded) | `System!*[System[(Level=1 or Level=2 or Level=3) and (EventID != 6)]]` |
156155
| Collect all success and failure Security events except for Event ID 4624 (Successful logon) | `Security!*[System[(band(Keywords,13510798882111488)) and (EventID != 4624)]]` |
157156
157+
> [!NOTE]
158+
> For a list of limitations in the XPath supported by Windows event log, see [XPath 1.0 limitations](/windows/win32/wes/consuming-events#xpath-10-limitations).
159+
> For instance, you can use the "position", "Band", and "timediff" functions within the query but other functions like "starts-with" and "contains" are not currently supported.
158160
159161
## Next steps
160162
161163
- [Collect text logs by using Azure Monitor Agent](data-collection-text-log.md).
162164
- Learn more about [Azure Monitor Agent](azure-monitor-agent-overview.md).
163-
- Learn more about [data collection rules](../essentials/data-collection-rule-overview.md).
165+
- Learn more about [data collection rules](../essentials/data-collection-rule-overview.md).

0 commit comments

Comments
 (0)