Is it possible for Data Collection Rule to look into datetime PATH?

Caday, Belmark June 5 Reputation points
2025-01-31T07:03:25.32+00:00

In Data Collection Rule -> Add Data source

Is it possible to look into variable path? Something like this :

/tmp/pat/{CurrentDate}/*.log

User's image

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,446 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 25,686 Reputation points MVP
    2025-01-31T08:44:54.4633333+00:00

    Hi,

    No, the names of the folders need to be specific folder names, they cannot be wild cards or other values. wild cards are only supported on the names of the log files.

    As per the official documentation here are the alternatives:

    While custom logs are useful if your data fits the criteria listed, there are cases where you need another strategy:

    • The data doesn't fit the required structure, such as having the timestamp in a different format.
    • The log file doesn't adhere to requirements such as file encoding or an unsupported folder structure.
    • The data requires preprocessing or filtering before collection.

    In the cases where your data can't be collected with custom logs, consider the following alternate strategies:

    • Use a custom script or other method to write data to Windows Events or Syslog, which are collected by Azure Monitor.
    • Send the data directly to Azure Monitor by using HTTP Data Collector API. While custom logs are useful if your data fits the criteria listed, there are cases where you need another strategy:
      • The data doesn't fit the required structure, such as having the timestamp in a different format.
      • The log file doesn't adhere to requirements such as file encoding or an unsupported folder structure.
      • The data requires preprocessing or filtering before collection.

    In the cases where your data can't be collected with custom logs, consider the following alternate strategies:

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    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.