# Need a help to fetch log based on the condition from json

**URL:** <https://community.dynatrace.com/t/need-a-help-to-fetch-log-based-on-the-condition-from-json/50267>\
**Category:** DQL\
**Tags:** logs\
**Created:** [February 14, 2025, 11:21am UTC](https://community.dynatrace.com/t/need-a-help-to-fetch-log-based-on-the-condition-from-json/50267 "2025-02-14T11:21:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JanJanu](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@JanJanu](https://community.dynatrace.com/u/JanJanu)\
**Post date:** [February 14, 2025, 11:21am UTC](https://community.dynatrace.com/t/need-a-help-to-fetch-log-based-on-the-condition-from-json/50267/1 "2025-02-14T11:21:32Z")

</div>

this is the sample json format need DQL to fetch logs if imported is 11 based on the ID

{  
“ID”: {  
“ID”: “ghghgghgh”,  
“Type”: “jj”  
},  
“Fruits”: {  
“Character”: {  
“color”:“red”  
“taste”: bitter,

},  
“Types”: {  
“imported”: [  
11  
],  
“isavailable”: “False”,

}  
}  
}

---

_[View the full topic](https://community.dynatrace.com/t/need-a-help-to-fetch-log-based-on-the-condition-from-json/50267)._
