<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Regex for Log source in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276201#M1305</link>
    <description>&lt;P&gt;Hi Shal,&lt;/P&gt;&lt;P&gt;the last one looks OK. (You can think of it as patterns for searching files on disk.) Have you created an ingest rule to ingest this custom log source?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 13:15:34 GMT</pubDate>
    <dc:creator>Joachim_Erdei</dc:creator>
    <dc:date>2025-04-29T13:15:34Z</dc:date>
    <item>
      <title>Regex for custom log source</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276078#M1302</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am trying to add below log file in Custom log source&lt;/P&gt;
&lt;TABLE width="625"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="625"&gt;D:\xxx\Apps\BusSys_UAT_OC5\xxx.BLT.BulkImportServerWS\&lt;FONT color="#993300"&gt;2025.4.24.1-mainBulkLoadTool-OC5&lt;/FONT&gt;\logs\&lt;FONT color="#993300"&gt;2025-04-24\&lt;FONT color="#000000"&gt;log.txt&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The words highlighted in red change according to the date the folder and file are generated.&lt;/P&gt;
&lt;P&gt;Can someone suggest how I can add a custom log for this pattern?&lt;/P&gt;
&lt;P&gt;I tried ones below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;D:\xxx\Apps\BusSys_UAT_OC5\xxx.BLT.BulkImportServerWS&lt;BR /&gt;\2025.4.24.1-mainBulkLoadTool-OC5\logs\*\log*&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;D:\xxx\Apps\BusSys_UAT_OC5\xxx\&lt;BR /&gt;2025.4.24.1-mainBulkLoadTool-OC5\logs\xxx\*.txt&lt;/LI&gt;
&lt;LI&gt;D:\xxx\Apps\BusSys_UAT_OC5\xxx.BLT.BulkImportServerWS\&lt;BR /&gt;*\logs\*\*.txt&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It either shows No log data or the file does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Dec 2025 09:37:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276078#M1302</guid>
      <dc:creator>Shal</dc:creator>
      <dc:date>2025-12-18T09:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Log source</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276201#M1305</link>
      <description>&lt;P&gt;Hi Shal,&lt;/P&gt;&lt;P&gt;the last one looks OK. (You can think of it as patterns for searching files on disk.) Have you created an ingest rule to ingest this custom log source?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 13:15:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276201#M1305</guid>
      <dc:creator>Joachim_Erdei</dc:creator>
      <dc:date>2025-04-29T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Log source</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276209#M1306</link>
      <description>&lt;P&gt;Hi Joachim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I have added custom log source as well as log ingestion rule as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Log source is any of : D:\XXX\Apps\BusSys_UAT_OC5\xxxBLT.BulkImportServerWS\*\logs\*\*.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:13:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276209#M1306</guid>
      <dc:creator>Shal</dc:creator>
      <dc:date>2025-06-26T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Log source</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276250#M1307</link>
      <description>&lt;P&gt;Hi Shal,&lt;/P&gt;&lt;P&gt;just to be clear, is "xxx" in your paths a replacement for something sensitive, or a part that might have multiple values (like a wildcard)? If taken literally, please note that you log ingest rule covers the second of custom log sources in the first post, and the rest are not matched (Merchants vs xxx).&lt;/P&gt;&lt;P&gt;Can you say what is the exact full path to the log file you try to ingest? Knowing that I could match it with the rules.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 06:40:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276250#M1307</guid>
      <dc:creator>Joachim_Erdei</dc:creator>
      <dc:date>2025-04-30T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Log source</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276381#M1308</link>
      <description>&lt;P&gt;Hi Joachim,&lt;/P&gt;&lt;P&gt;Yes, sorry for the confusion. You can consider the actual file path as below:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;D:\xxx\Apps\BusSys_UAT_OC5\xxx.BLT.BulkImportServerWS\&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;2025.4.24.1-mainBulkLoadTool-OC5&lt;/FONT&gt;&lt;SPAN&gt;\logs\&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;2025-04-24\&lt;FONT color="#000000"&gt;log.txt&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;The text highlighted in red generates based on date . Sometimes instead of log.txt there can be files like log.00001.txt or log.00002.txt also.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;That is the reason am considering it as wildcards and added the below rule .&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Just checking if the custom log source and rule can be added as below&amp;nbsp; so that if there is any recent file it can capture it.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;D:\xxxApps\BusSys_UAT_OC5\xxxBLT.BulkImportServerWS\*\logs\*\*.txt&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 13:14:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276381#M1308</guid>
      <dc:creator>Shal</dc:creator>
      <dc:date>2025-06-26T13:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regex for Log source</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276456#M1309</link>
      <description>&lt;P&gt;It looks to me that the custom log source rule is perfectly OK. Please remember that custom log source name (not the file name) is your "log.source" attribute, which you can choose in your ingest rules.&lt;/P&gt;&lt;P&gt;Just for your information - you should also have a built-in rule (disabled on default) which ingests all custom log sources - you can just enable it if you find it suitable.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 07:17:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Regex-for-custom-log-source/m-p/276456#M1309</guid>
      <dc:creator>Joachim_Erdei</dc:creator>
      <dc:date>2025-05-05T07:17:12Z</dc:date>
    </item>
  </channel>
</rss>

