<?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: Putty grep command - DQL equivalent in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289869#M2865</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;try with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter contains(content, "exception", caseSensitive:false)
| filter contains(log.source, "/data/this/will/be/the/folder/location/")
| summarize { cnt = count() }, by:{content}
| sort cnt desc
| limit 10&lt;/LI-CODE&gt;&lt;P&gt;grep -i "exception" filter contains(content, "exception", caseSensitive:false)&lt;BR /&gt;*.log in a folder filter contains(log.source, "/data/.../")&lt;BR /&gt;uniq -c summarize { cnt = count() }, by:{content}&lt;BR /&gt;sort -nr sort cnt desc&lt;BR /&gt;head -n 10 limit 10&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2025 14:44:26 GMT</pubDate>
    <dc:creator>t_pawlak</dc:creator>
    <dc:date>2025-11-19T14:44:26Z</dc:date>
    <item>
      <title>Use DQL Equivalent of Putty Grep Command for Data Filtering</title>
      <link>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289864#M2864</link>
      <description>&lt;P&gt;I am trying to translate this string to DQL and failing miserably. Can anyone help?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;grep -i "exception" /data/this/will/be/the/folder/location/*.log | sort | uniq -c | sort -nr | head -n 10&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Basically, anything that has the word "&lt;U&gt;exception&lt;/U&gt;" in the log from the a folder location I would like to be able to view them in data explorer / dashboard / notebook.&lt;/P&gt;
&lt;P&gt;Can anyone help me how to properly translate this to DQL?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:20:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289864#M2864</guid>
      <dc:creator>apanoobee</dc:creator>
      <dc:date>2025-12-17T12:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Putty grep command - DQL equivalent</title>
      <link>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289869#M2865</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;try with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| filter contains(content, "exception", caseSensitive:false)
| filter contains(log.source, "/data/this/will/be/the/folder/location/")
| summarize { cnt = count() }, by:{content}
| sort cnt desc
| limit 10&lt;/LI-CODE&gt;&lt;P&gt;grep -i "exception" filter contains(content, "exception", caseSensitive:false)&lt;BR /&gt;*.log in a folder filter contains(log.source, "/data/.../")&lt;BR /&gt;uniq -c summarize { cnt = count() }, by:{content}&lt;BR /&gt;sort -nr sort cnt desc&lt;BR /&gt;head -n 10 limit 10&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 14:44:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289869#M2865</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2025-11-19T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Putty grep command - DQL equivalent</title>
      <link>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289875#M2866</link>
      <description>&lt;P&gt;Thank you. I think I might have solved it by using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;fetch logs&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| filter matchesValue(host.name, "#####.domain.net") AND matchesValue(log.source, "data/this/will/be/the/folder/location/*") AND matchesValue(content, "*exception*")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| sort timestamp desc&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| limit 10&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 15:01:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Use-DQL-Equivalent-of-Putty-Grep-Command-for-Data-Filtering/m-p/289875#M2866</guid>
      <dc:creator>apanoobee</dc:creator>
      <dc:date>2025-11-19T15:01:27Z</dc:date>
    </item>
  </channel>
</rss>

