<?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: time stamp rule with no date data in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/time-stamp-rule-with-no-date-data/m-p/265424#M1131</link>
    <description>&lt;P&gt;Hi Stephen,&lt;BR /&gt;&lt;BR /&gt;Dynatrace needs both date and time in the timestamp to recognize it correctly. My recommendation is to fix the timestamp from the source. However if it is not possible, i have worked on this processing rule which can append the current date to the timestamp.&lt;BR /&gt;&lt;BR /&gt;After creating this rule either it will be autodetected or you can create a timestamp rule. Cheers!&lt;BR /&gt;USING(INOUT content)&lt;BR /&gt;|FIELDS_ADD(DAY(now()),MONTH(now()),year(now()))&lt;BR /&gt;| FIELDS_ADD(date: CONCAT(year, month, day))&lt;BR /&gt;| FIELDS_ADD(content: concat(date, " ", content))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RohitBisht_0-1734410364887.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25263i205DCA1783E1B34B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RohitBisht_0-1734410364887.png" alt="RohitBisht_0-1734410364887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 04:40:14 GMT</pubDate>
    <dc:creator>RohitBisht</dc:creator>
    <dc:date>2024-12-17T04:40:14Z</dc:date>
    <item>
      <title>time stamp rule with no date data</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/time-stamp-rule-with-no-date-data/m-p/265412#M1130</link>
      <description>&lt;P&gt;I have a log that does not contain any date data, only a time stamp. when I try to create a time stamp processing rule it won't let me save it saying I am missing month and day.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get the time to be recognized correctly?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:50:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/time-stamp-rule-with-no-date-data/m-p/265412#M1130</guid>
      <dc:creator>stephenM</dc:creator>
      <dc:date>2024-12-16T21:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: time stamp rule with no date data</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/time-stamp-rule-with-no-date-data/m-p/265424#M1131</link>
      <description>&lt;P&gt;Hi Stephen,&lt;BR /&gt;&lt;BR /&gt;Dynatrace needs both date and time in the timestamp to recognize it correctly. My recommendation is to fix the timestamp from the source. However if it is not possible, i have worked on this processing rule which can append the current date to the timestamp.&lt;BR /&gt;&lt;BR /&gt;After creating this rule either it will be autodetected or you can create a timestamp rule. Cheers!&lt;BR /&gt;USING(INOUT content)&lt;BR /&gt;|FIELDS_ADD(DAY(now()),MONTH(now()),year(now()))&lt;BR /&gt;| FIELDS_ADD(date: CONCAT(year, month, day))&lt;BR /&gt;| FIELDS_ADD(content: concat(date, " ", content))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RohitBisht_0-1734410364887.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25263i205DCA1783E1B34B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RohitBisht_0-1734410364887.png" alt="RohitBisht_0-1734410364887.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 04:40:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/time-stamp-rule-with-no-date-data/m-p/265424#M1131</guid>
      <dc:creator>RohitBisht</dc:creator>
      <dc:date>2024-12-17T04:40:14Z</dc:date>
    </item>
  </channel>
</rss>

