<?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: Can we import text and excel file in Dynatrace query in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299332#M3338</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/99064"&gt;@kumarv14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, this can be handled by storing the IMSI list as &lt;A href="https://docs.dynatrace.com/docs/platform/grail/lookup-data" target="_blank"&gt;&lt;STRONG&gt;lookup data in Grail&lt;/STRONG&gt;&lt;/A&gt;, and then using that lookup table inside your DQL query.&lt;/P&gt;&lt;P&gt;In this case, I would not try to loop through the IMSIs one by one manually. A cleaner approach is to upload the values as a lookup table and then correlate them with your logs in a single query.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example IMSI file:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;IMSI
3xx4490
7xx6595
2416xx
36334
454xx&lt;/PRE&gt;&lt;P&gt;The file should preferably be prepared as &lt;STRONG&gt;CSV&lt;/STRONG&gt;. If the source is an Excel file, convert it to CSV first and then upload it as lookup data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example lookup path:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/lookups/imsi_list&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Example DQL:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;load "/lookups/imsi_list"
| dedup IMSI
| join [
    fetch logs, scanLimitGBytes:-1
    | filter dt.system.bucket == "custom_digital_"
    | filter index == "_db"
    | filter Market == "IN"
    | fields timestamp, IMSI, AuditMessage, TransactionType
], on:{IMSI}
| fields
    timestamp = right.timestamp,
    IMSI,
    AuditMessage = right.AuditMessage,
    TransactionType = right.TransactionType&lt;/PRE&gt;&lt;P&gt;This will compare the IMSI values from the uploaded lookup table with the IMSI field in the logs, and return the corresponding matching records.&lt;/P&gt;&lt;P&gt;Once the query returns the expected results, the output can be exported from the table view as a CSV file.&lt;/P&gt;&lt;P&gt;One important detail: if values such as &lt;STRONG&gt;3xx4490&lt;/STRONG&gt; or &lt;STRONG&gt;7xx6595 &lt;/STRONG&gt;are only anonymized examples, then the query above is appropriate. However, if the &lt;STRONG&gt;x&lt;/STRONG&gt; characters are meant to behave as wildcards, then an exact join will not match them, and a pattern-matching approach would be needed instead.&lt;/P&gt;&lt;P&gt;I hope it helps you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2026 09:51:50 GMT</pubDate>
    <dc:creator>MaximilianoML</dc:creator>
    <dc:date>2026-05-12T09:51:50Z</dc:date>
    <item>
      <title>Can we import text and excel file in Dynatrace query</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299326#M3336</link>
      <description>&lt;DIV&gt;&lt;P&gt;Hello all/&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please advise on how to import a &lt;STRONG&gt;TXT or XLS file into Dynatrace&lt;/STRONG&gt; so that it can be used within a query? Specifically, I would like to read IMSI values from the file and use them dynamically within the query, such that each IMSI is processed one by one, and the corresponding results are generated and exported into an output file.&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch logs, scanLimitGBytes:-1&lt;BR /&gt;| filter dt.system.bucket=="custom_digital_" and index=="_db"&lt;BR /&gt;| filter Market=="IN" and IMSI=="20xxx"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;|fields timestamp, AuditMessage,TransactionType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IMSI details&amp;nbsp;&lt;/P&gt;&lt;P&gt;3xx4490&lt;BR /&gt;7xx6595&lt;BR /&gt;2416xx&lt;BR /&gt;36334&lt;BR /&gt;454xx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!!&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:02:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299326#M3336</guid>
      <dc:creator>kumarv14</dc:creator>
      <dc:date>2026-05-12T09:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can we import text and excel file in Dynatrace query</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299330#M3337</link>
      <description>&lt;P&gt;Hi, did you checked lookup tables?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/lookup-data" target="_blank"&gt;Lookup data in Grail — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:44:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299330#M3337</guid>
      <dc:creator>Tommaso_Fin</dc:creator>
      <dc:date>2026-05-12T09:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we import text and excel file in Dynatrace query</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299332#M3338</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/99064"&gt;@kumarv14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, this can be handled by storing the IMSI list as &lt;A href="https://docs.dynatrace.com/docs/platform/grail/lookup-data" target="_blank"&gt;&lt;STRONG&gt;lookup data in Grail&lt;/STRONG&gt;&lt;/A&gt;, and then using that lookup table inside your DQL query.&lt;/P&gt;&lt;P&gt;In this case, I would not try to loop through the IMSIs one by one manually. A cleaner approach is to upload the values as a lookup table and then correlate them with your logs in a single query.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example IMSI file:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;IMSI
3xx4490
7xx6595
2416xx
36334
454xx&lt;/PRE&gt;&lt;P&gt;The file should preferably be prepared as &lt;STRONG&gt;CSV&lt;/STRONG&gt;. If the source is an Excel file, convert it to CSV first and then upload it as lookup data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example lookup path:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;/lookups/imsi_list&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Example DQL:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;load "/lookups/imsi_list"
| dedup IMSI
| join [
    fetch logs, scanLimitGBytes:-1
    | filter dt.system.bucket == "custom_digital_"
    | filter index == "_db"
    | filter Market == "IN"
    | fields timestamp, IMSI, AuditMessage, TransactionType
], on:{IMSI}
| fields
    timestamp = right.timestamp,
    IMSI,
    AuditMessage = right.AuditMessage,
    TransactionType = right.TransactionType&lt;/PRE&gt;&lt;P&gt;This will compare the IMSI values from the uploaded lookup table with the IMSI field in the logs, and return the corresponding matching records.&lt;/P&gt;&lt;P&gt;Once the query returns the expected results, the output can be exported from the table view as a CSV file.&lt;/P&gt;&lt;P&gt;One important detail: if values such as &lt;STRONG&gt;3xx4490&lt;/STRONG&gt; or &lt;STRONG&gt;7xx6595 &lt;/STRONG&gt;are only anonymized examples, then the query above is appropriate. However, if the &lt;STRONG&gt;x&lt;/STRONG&gt; characters are meant to behave as wildcards, then an exact join will not match them, and a pattern-matching approach would be needed instead.&lt;/P&gt;&lt;P&gt;I hope it helps you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:51:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299332#M3338</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-05-12T09:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can we import text and excel file in Dynatrace query</title>
      <link>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299333#M3339</link>
      <description>&lt;P&gt;Vote up&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3393"&gt;@Tommaso_Fin&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 09:53:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Can-we-import-text-and-excel-file-in-Dynatrace-query/m-p/299333#M3339</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-05-12T09:53:09Z</dc:date>
    </item>
  </channel>
</rss>

