<?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: Fetch logs from all hosts with a Tag in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232517#M445</link>
    <description>&lt;P&gt;count it be&amp;nbsp;&lt;SPAN&gt;because there are many Tags?&amp;nbsp; might it need to be a '&lt;STRONG&gt;containsValue&lt;/STRONG&gt;' rather than &lt;STRONG&gt;matchesValue&lt;/STRONG&gt;?&amp;nbsp; or whatever the DQL equivalent is?&amp;nbsp; in your testing, try it with several tags....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 17:00:59 GMT</pubDate>
    <dc:creator>S_Hadley1138</dc:creator>
    <dc:date>2023-12-20T17:00:59Z</dc:date>
    <item>
      <title>Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232394#M434</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I'm a newbie, so please don't flame me.&amp;nbsp; I'm trying to get the logs from all hosts that have a certain Tag...&amp;nbsp; i can get the hosts, but them how do i feed that to a fetch logs ?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;fetch dt.entity.host | filter matchesValue(tags,"MESSAGING:DAG01")&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;| fetch logs&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;doesn't seem to work&lt;/P&gt;
&lt;P&gt;any pointers would be appreciated, cheers&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 08:27:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232394#M434</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-20T08:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232418#M435</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/70034"&gt;@S_Hadley1138&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| lookup [ fetch dt.entity.host
  | filter matchesValue(tags,"MESSAGING:DAG01")
],lookupField:id, fields:{id} &lt;/LI-CODE&gt;&lt;P&gt;Let me know if it's ok for you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 19:51:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232418#M435</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-12-19T19:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232445#M437</link>
      <description>&lt;P&gt;thanks for responding.&amp;nbsp; it does execute, but its not respecting the tag, and pulling everything back.&amp;nbsp; it seems i can put anything in the tag field in the query and get the same results...&amp;nbsp; very odd&lt;/P&gt;&lt;P&gt;ive tried to show in the screenshot, that the hosts its pulling back are citrix, rather than messaging, and have different tags&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 09:59:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232445#M437</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-20T09:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232477#M439</link>
      <description>&lt;P&gt;Ooh.. so you can try this :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| lookup 
  [ 
    fetch dt.entity.host
  ],sourceField:dt.entity.host, lookupField:id, fields:{id,tags}
| filter matchesValue(tags,"MESSAGING:DAG01")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 12:41:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232477#M439</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-12-20T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232481#M440</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/70034"&gt;@S_Hadley1138&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;oooh.. So you can try this one :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch logs
| lookup 
  [ 
    fetch dt.entity.host
  ],sourceField:dt.entity.host, lookupField:id, fields:{id,tags}
| filter matchesValue(tags,"MESSAGING:DAG01")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 12:55:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232481#M440</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-12-20T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232488#M441</link>
      <description>&lt;P&gt;close, but that doesn't return anything...&lt;/P&gt;&lt;P&gt;i can see what you are doing with the filter, as this query returns the host names ok&lt;/P&gt;&lt;P&gt;fetch dt.entity.host&lt;BR /&gt;|fieldsAdd entity.name&lt;BR /&gt;| filter matchesValue(tags,"MESSAGING:DAG01")&lt;/P&gt;&lt;P&gt;just need to get the logs to filter by this list....&amp;nbsp; so close&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 13:39:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232488#M441</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-20T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232502#M442</link>
      <description>&lt;P&gt;sadly, that return no results.&amp;nbsp; the filter part works against the hosts table, it just doesnt want to connect the two parts.&amp;nbsp; any other ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 15:11:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232502#M442</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-20T15:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232511#M443</link>
      <description>&lt;P&gt;It's curious because I tested the command on my environment and it works well..&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 16:16:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232511#M443</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-12-20T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232515#M444</link>
      <description>&lt;P&gt;i agree, as i think it is along the right lines.....&amp;nbsp; I've included a screenshot, i can prove the tags are right...&amp;nbsp; i must be doing something wrong&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 16:42:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232515#M444</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-20T16:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232517#M445</link>
      <description>&lt;P&gt;count it be&amp;nbsp;&lt;SPAN&gt;because there are many Tags?&amp;nbsp; might it need to be a '&lt;STRONG&gt;containsValue&lt;/STRONG&gt;' rather than &lt;STRONG&gt;matchesValue&lt;/STRONG&gt;?&amp;nbsp; or whatever the DQL equivalent is?&amp;nbsp; in your testing, try it with several tags....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 17:00:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232517#M445</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-20T17:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232533#M447</link>
      <description>&lt;P&gt;can you observe the desired tags with the following command?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.host
| filter matchesValue(tags,"MESSAGING:DAG01")
| fields entity.name, id, tags&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Dec 2023 19:36:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232533#M447</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-12-20T19:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232586#M448</link>
      <description>&lt;P&gt;yep, that query works fine (apologies for the red, im trying to obscure the company name)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 13:43:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232586#M448</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-21T13:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232593#M449</link>
      <description>&lt;P&gt;i may have found the issue....&amp;nbsp; seems our servers were not enabled for collecting the windows application logs, so there are no logs to find...&amp;nbsp; &amp;nbsp; &amp;nbsp; apologies for that&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 14:47:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232593#M449</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-21T14:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232622#M450</link>
      <description>&lt;P&gt;That&amp;nbsp;might explain it&amp;nbsp;all ^^&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 20:31:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232622#M450</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2023-12-21T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch logs from all hosts with a Tag</title>
      <link>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232665#M453</link>
      <description>&lt;P&gt;like I said, I am a Newbie...&amp;nbsp; &amp;nbsp;&lt;EM&gt;(and a Muppet...)&amp;nbsp;&lt;/EM&gt; &amp;nbsp;thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 08:57:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Fetch-logs-from-all-hosts-with-a-Tag/m-p/232665#M453</guid>
      <dc:creator>S_Hadley1138</dc:creator>
      <dc:date>2023-12-22T08:57:40Z</dc:date>
    </item>
  </channel>
</rss>

