# Extract data of MSISDN with multiple IMSI

**URL:** <https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453>\
**Category:** DQL\
**Tags:** dql\
**Created:** [December 19, 2025, 2:02pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453 "2025-12-19T14:02:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarv14](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kumarv14](https://community.dynatrace.com/u/kumarv14)\
**Post date:** [December 19, 2025, 2:02pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/1 "2025-12-19T14:02:38Z")

</div>

Hello all ,

i am new for DQL so i am trying to extract data of MSISDN against the IMSI where i have multiple IMSI , so is there any way so&nbsp; that query take IMSI and extract the MSISDN against those IMSI in one go .

fetch logs,scanLimitGBytes:-1  
| filter dt.system.bucket==“engineering” and index == “AB”  
| filter Market == “NA”  
|filter IMSI==“1800189”  
|filter isNotNull(MDN) and MDN != 0  
|fields DEG\_MDN

output -:

MDN

8634####

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 19, 2025, 2:21pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/2 "2025-12-19T14:21:14Z")

</div>

Can you please elaborate more on that and provide a sample of the log record?

---

<div class="post-metadata">

**Author:** ![kumarv14](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kumarv14](https://community.dynatrace.com/u/kumarv14)\
**Post date:** [December 19, 2025, 2:28pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/3 "2025-12-19T14:28:20Z")

</div>

i am getting msisdn with this query but i have multiple imsi so wants to get msisdn&nbsp; in one go is it possible ? PFA the snap .

 ![imsi-check.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/f/2f7532f7272042e1d24030e63d9add3d2b702c09.png)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 19, 2025, 2:33pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/4 "2025-12-19T14:33:29Z")

</div>

I’m still not sure what you need and, most importantly, how the source data looks like.

Maybe you need to summarize with collectDistinct ?

---

<div class="post-metadata">

**Author:** ![kumarv14](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kumarv14](https://community.dynatrace.com/u/kumarv14)\
**Post date:** [December 19, 2025, 2:56pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/5 "2025-12-19T14:56:12Z")

</div>

basically simple thing on behalf of IMSI i am trying to extract MDN , but i have multiple IMSI so how can i check MDN details , it extracted by manual process but when we have IMSI in 1K range then not possible to get MDN against the IMSI.

Logs format -:

Here&nbsp;numericMDN(real numeric MSISDN) due to some compliance i can not upload real logs . logs are pipe separated .

Date |HTTPS|OUT|0|DEG\_MDN| IMSI |someAPIName|SessionID| DEG\_MDN=numericMDN

 ![imsi-check -2.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/aea1127a277e7f0a780df89c2f40f74da957b046.png)

---

<div class="post-metadata">

**Author:** ![krzysztof\_hoja](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/krzysztof_hoja/32/34625_2.png) [@krzysztof\_hoja](https://community.dynatrace.com/u/krzysztof_hoja)\
**Post date:** [December 22, 2025, 1:22pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/6 "2025-12-22T13:22:33Z")

</div>

to filter by multiple values you can use _**in()**_ function, like:

```markup
|filter in(IMSI, {"1800189", "1800188", "1800187"})

```

If you want to know which&nbsp;DEG\_MDN belong to which&nbsp;IMSI, just leave both fields in output:

```markup
|fields DEG_MDN, IMSI

```

> **[General functions](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/functions/general-functions)**
>
> A list of DQL general functions.

---

<div class="post-metadata">

**Author:** ![kumarv14](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kumarv14](https://community.dynatrace.com/u/kumarv14)\
**Post date:** [January 15, 2026, 12:15pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/7 "2026-01-15T12:15:37Z")

</div>

Hello All,

Happy new year , hope you all are doing well . i wants to get result of unique IMSI against the specific API i have this query and getting some result so can you suggest me if any other option to get best results.

fetch logs,scanLimitGBytes:-1  
| filter dt.system.bucket==“engineering” and index == “db”  
| filter SourceDestination==“Device”  
| filter Market == “IN”  
| filter Direction == “OUT”  
| filter TransactionType == “getMSI”  
|summarize countDistinct(IMSI)

note -- IMSI is a field here ,that one i wants to get distinct count for the same.

2695384

---

<div class="post-metadata">

**Author:** ![kumarv14](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kumarv14](https://community.dynatrace.com/u/kumarv14)\
**Post date:** [January 15, 2026, 12:57pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/8 "2026-01-15T12:57:50Z")

</div>

Hello All,

Happy new year , hope you all are doing well . i wants to get result of unique IMSI against the specific API i have this query and getting some result so can you suggest me if any other option to get best results.

fetch logs,scanLimitGBytes:-1  
| filter dt.system.bucket==“engineering” and index == “db”  
| filter SourceDestination==“Device”  
| filter Market == “IN”  
| filter Direction == “OUT”  
| filter TransactionType == “getMSI”  
|summarize countDistinct(IMSI)

note -- IMSI is a field here ,that one i wants to get distinct count for the same.

2695384

---

<div class="post-metadata">

**Author:** ![kumarv14](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kumarv14](https://community.dynatrace.com/u/kumarv14)\
**Post date:** [January 15, 2026, 12:58pm UTC](https://community.dynatrace.com/t/extract-data-of-msisdn-with-multiple-imsi/54453/9 "2026-01-15T12:58:31Z")

</div>

Hello All,

Happy new year , hope you all are doing well . i wants to get result of unique IMSI against the specific API i have this query and getting some result so can you suggest me if any other option to get best results.

fetch logs,scanLimitGBytes:-1  
| filter dt.system.bucket==“engineering” and index == “db”  
| filter SourceDestination==“Device”  
| filter Market == “IN”  
| filter Direction == “OUT”  
| filter TransactionType == “getMSI”  
|summarize countDistinct(IMSI)

note -- IMSI is a field here ,that one i wants to get distinct count for the same.

2695384
