# Need to extract logs on behalf of Opco and IMSI variable

**URL:** <https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201>\
**Category:** DQL\
**Tags:** dynatrace-managed, dpl\
**Created:** [March 6, 2026, 12:23pm UTC](https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201 "2026-03-06T12:23:25Z")\
**Posts on this page:** 5\
**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:** [March 6, 2026, 12:23pm UTC](https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201/1 "2026-03-06T12:23:25Z")

</div>

Hello everyone and&nbsp;[@krzysztof\_hoja](https://community.dynatrace.com/user/25373) ,

Can someone help me create a dashboard that uses two input values — **Market (OpCo)** and **IMSI**?  
I want the dashboard to accept these two values as variables, and then display the logs based on the selected Market and IMSI.

Please find the attached screenshot for reference.  
So far, I was able to pass a list for the Market value, but for IMSI I need a user‑input field.  
Both values should be passed into the query, and the dashboard should show the results just like in the screenshot.

in first image on which i am working , in second logs pic showing here , what i wants&nbsp; after enter the values .

**Name:** `Market`  
**Type:** Text/List  
**Default:** _empty (shows all)_  
**Example values:** `PT`, `DE`, `IN`,

fetch logs, scanLimitGBytes:-1  
| filter dt.system.bucket==“\_engineering” and index == “serv\_db”  
| filter Market==“UK” and IMSI==“11502178721”

| fields timestamp,AuditMessage

 ![IMSI-pics.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/7/2787d93debf3bf7723db0a513e37e7d249aaf537.png)  
 ![logs-pic.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/6/76543d1631fd9cf8e4161a35095ab0c5bd13ce0e.png)

---

<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:** [March 6, 2026, 2:11pm UTC](https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201/2 "2026-03-06T14:11:22Z")

</div>

[@krzysztof\_hoja](https://community.dynatrace.com/user/25373)&nbsp;PFA the snap where i am able to pass IMSI and Market but not getting expected result as i wants about this IMSI against the Market .. I will appreciate you in advance&nbsp; if you reply with solution on the same .

 ![IMSI-stats-dashboard.csv.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/d/0d335724459fa855f9e0cbb11ecf4b38b587ef26.png)

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [March 13, 2026, 2:26pm UTC](https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201/3 "2026-03-13T14:26:41Z")

</div>

Hi,  
Yes this is possible, and for your use case the best setup is:

- Market as a List variable
- IMSI as a Free Text variable

Dynatrace dashboards support both list variables and manual text input variables, and you can reference them in DQL using $VariableName. By default, the variable is inserted into the query as a quoted string.  
[Add a variable to a dashboard](https://docs.dynatrace.com/docs/analyze-explore-automate/dashboards-and-notebooks/dashboards-new/components/dashboard-component-variable)&nbsp;\<-- here you have documentation.  
“empty = show all” is not automatic. You need to handle that logic directly in the DQL query. The same applies if you want Market to support an “All” option. Dashboard variables recalculate the tiles when their values change.  
IMO you should set it like this:

Variable 1

- Name: Market
- Type: List
- Values: ALL,PT,DE,IN,UK

Variable 2

- Name: IMSI
- Type: Free Text
- Default: empty

 ![var2.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/8/0/8059ce19fb2facbf57c2f7eebe4d1e9bdcfcce0b.jpeg)

 ![var1.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/0/e/0e147d1718a66befbff0c421a4144cf3ad566184.jpeg)

then you can use them in DQL, like this:

```markup
fetch logs, scanLimitGBytes:-1
| filter dt.system.bucket == "_engineering" and index == "serv_db"
| filter ($Market == "ALL" or Market == $Market)
| filter IMSI == $IMSI
| fields timestamp, AuditMessage, Market, IMSI
| sort timestamp desc

```

or you can also replace

```markup
| filter IMSI == $IMSI

```

to

```markup
| filter ($IMSI == "" or IMSI == $IMSI)

```

---

<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:** [March 16, 2026, 12:30pm UTC](https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201/4 "2026-03-16T12:30:37Z")

</div>

Thanks for the reply , it is working now .!!

---

<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:** [April 3, 2026, 10:22am UTC](https://community.dynatrace.com/t/need-to-extract-logs-on-behalf-of-opco-and-imsi-variable/55201/5 "2026-04-03T10:22:40Z")

</div>

Hey ,

could you please help me on this ?

App TO DEVICE → Sending SIMStatus response= STATUS\_CODE=6000, Subscription={},Secondary-devices={EID:84130096,sICCID:,Status:Pending-Profile-Release;}

i wants to extract field Status:Pending-Profile-Release in this anyother string can also come i used below query but getting error

fetch logs, scanLimitGBytes:-1  
| filter dt.system.bucket==“\_engineering” and index==“serv\_db”  
| filter Market==“IN”  
| filter Direction==“OUT”  
| filter contains(AuditMessage, “App TO DEVICE → Sending SIMStatus response”)  
| parse AuditMessage, “Status:{DeviceStatus};”  
| filter DeviceStatus == “Pending-Profile-Release”  
| fields timestamp, IMSI, DEG\_MDN, DeviceStatus, AuditMessage
