<?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: Log processing not splitting lines in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197677#M492</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried both, it seems it only takes the first json and ignores the others, is there a way to load each json into a array and loop through the array?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it takes longer to take effect, will monitor for a longer time and then give feedback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot for the moment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 09:22:15 GMT</pubDate>
    <dc:creator>mferstl</dc:creator>
    <dc:date>2022-11-03T09:22:15Z</dc:date>
    <item>
      <title>Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197664#M490</link>
      <description>&lt;P&gt;I have a custom logfile and want to use log processing, but it doesn't split the loglines as it should, is there a way to tell the system to do that?&lt;/P&gt;
&lt;P&gt;The log is json formatted, so every {} is one logline&lt;BR /&gt;example of the content:&lt;BR /&gt;"content": "{\"servertime\":\"2022-11-02T23:44:48.3637831-04:00\",\"action\":\"Start US\",\"region\":\"US\",\"time\":0}{\"region\":\"US\",\"action\":\"Start US\",\"time\":0,\"servertime\":\"2022-11-02T23:45:17.8491586-04:00\"}{\"region\":\"US\",\"action\":\"Start US\",\"time\":0,\"servertime\":\"2022-11-02T23:46:00.7540443-04:00\"}"&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 09:47:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197664#M490</guid>
      <dc:creator>mferstl</dc:creator>
      <dc:date>2022-11-03T09:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197670#M491</link>
      <description>&lt;P&gt;Hi mferstl,&lt;BR /&gt;&lt;BR /&gt;All depend on the way you proceed for parsing your JSON with all attributes and fields.&amp;nbsp;&lt;BR /&gt;this is a useful link :&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/acquire-log-data/log-processing/log-processing-examples#example-4-parse-out-specific-fields-from-json-content" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/acquire-log-data/log-processing/log-processing-examples#example-4-parse-out-specific-fields-from-json-content&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can use for instance :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;PARSE(content,"JSON:parsedJson")&lt;/P&gt;&lt;P&gt;| FIELDS_ADD (resultDescription:parsedJson["resultDescription"])&lt;BR /&gt;| PARSE(resultDescription,"SPACE? JSON:resultDescriptionFormated")&lt;/P&gt;&lt;P&gt;| FIELDS_ADD(&lt;BR /&gt;&lt;BR /&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USING(INOUT content)&lt;BR /&gt;| PARSE(content,"JSON:parsedJson")&lt;/P&gt;&lt;P&gt;| FIELDS_ADD (resultDescription:parsedJson["resultDescription"])&lt;BR /&gt;&lt;BR /&gt;to avoid character limitation.&lt;BR /&gt;&lt;BR /&gt;hope it helps,&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 08:05:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197670#M491</guid>
      <dc:creator>uros_djukic1</dc:creator>
      <dc:date>2022-11-03T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197677#M492</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried both, it seems it only takes the first json and ignores the others, is there a way to load each json into a array and loop through the array?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it takes longer to take effect, will monitor for a longer time and then give feedback&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot for the moment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 09:22:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197677#M492</guid>
      <dc:creator>mferstl</dc:creator>
      <dc:date>2022-11-03T09:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197684#M493</link>
      <description>&lt;P&gt;you can now try to concatenate like this :&amp;nbsp;&lt;BR /&gt;FIELDS_ADD(content: attribute1 + attribute2)&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/lma-log-processing-functions#strings" target="_blank" rel="noopener"&gt;Log processing functions - String | Dynatrace Docs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Moreover, y&lt;SPAN&gt;ou can parse out the other attributes that manner :&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;PARSE(content, "LD '\"US\":' SPACE? DQS:US")&lt;BR /&gt;&lt;BR /&gt;those attributes :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"US\",\"action\"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PARSE(content,"JSON{STRING:US, STRING:action}:parsed")&lt;BR /&gt;| FIELDS_ADD(US: parsed[US], action: parsed[action])&lt;BR /&gt;| FIELDS_REMOVE(parsed)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:32:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197684#M493</guid>
      <dc:creator>uros_djukic1</dc:creator>
      <dc:date>2023-03-23T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197689#M494</link>
      <description>&lt;P&gt;no, its still happening&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;Message&lt;/DIV&gt;&lt;DIV&gt;{&lt;SPAN class=""&gt;"region"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;"CN"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"servertime"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;"2022-11-03T05:50:07.1373187-04:00"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"action"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;"Start CN"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"time"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;0&lt;/SPAN&gt;} {&lt;SPAN class=""&gt;"time"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;291&lt;/SPAN&gt;.&lt;SPAN class=""&gt;5652348&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"region"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;"ROW"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"servertime"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;"2022-11-03T05:50:09.5621787-04:00"&lt;/SPAN&gt;,&lt;SPAN class=""&gt;"action"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;"ROW total runtime"&lt;/SPAN&gt;}&lt;BR /&gt;&lt;DIV class=""&gt;Other&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;action&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Start CN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;process.technology&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;1.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;.NET&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;2.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;CLR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;region&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;CN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;time&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Nov 2022 10:03:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197689#M494</guid>
      <dc:creator>mferstl</dc:creator>
      <dc:date>2022-11-03T10:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197700#M495</link>
      <description>&lt;P&gt;seems to work, lets hope it continues to do so&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 10:41:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/197700#M495</guid>
      <dc:creator>mferstl</dc:creator>
      <dc:date>2022-11-03T10:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Log processing not splitting lines</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/203106#M496</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Automatic parsing will be done when Dynatrace finds a timestamp inside the log line. I believe yours is the servertime field. You should add a timestamp configuration for your logs and this will be done automatically. You could also (if the log lines are very long and you can't control where will the timestamp be in the string control the number of strings to look at in each row to identify the field.&lt;/P&gt;&lt;P&gt;All previous comments that I see will only occur after the json has entered Dynatrace so first make sure the timestamp is defined correctly, otherwise you might be missing some lines.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 10:28:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Log-processing-not-splitting-lines/m-p/203106#M496</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2023-01-22T10:28:11Z</dc:date>
    </item>
  </channel>
</rss>

