# How am I supposed to filter the query logs with a mobile phone browser?

**URL:** https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656
**Category:** Help
**Tags:** v5-0
**Created:** [August 26, 2020, 2:28am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656 "2020-08-26T02:28:49Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Deses](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/deses/32/6887_2.png) [@Deses](https://discourse.pi-hole.net/u/Deses)
#### Post date: [August 26, 2020, 2:28am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/1 "2020-08-26T02:28:49Z")

</div>

So, since the new update if you want to filter anything in the query logs you have to press control + click or shift + click.

That's all fine while I'm using my desktop... But..  
The thing is... What do I do if I'm using my phone? 🤔

 ![Screenshot_20200826-042317](https://discourse.pi-hole.net/uploads/default/original/3X/4/a/4aab22565f3d3255a984d58342dbb8ac1386dc6d.jpeg)

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [August 26, 2020, 2:46am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/2 "2020-08-26T02:46:01Z")

</div>

On mobiles you need to type the search term in the search window.

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [August 26, 2020, 4:46am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/3 "2020-08-26T04:46:56Z")

</div>

Searching and filtering do not behave exactly the same way. Searching is inclusive while filtering is exclusive.  
See the screenshot where I searched for "Google.com"

 ![Screenshot_20200826-064235](https://discourse.pi-hole.net/uploads/default/original/3X/0/8/08b9c47107389bff1561594d7da87b75e7894273.png)

There is an open issue ticket on github, maybe you have a good idea how to design the UI to include all the searching, filtering, selecting on desktop and mobile?

[https://github.com/pi-hole/AdminLTE/issues/1561](https://github.com/pi-hole/AdminLTE/issues/1561)

---

<div class="post-metadata">

### Author: ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)
#### Post date: [August 26, 2020, 12:42pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/4 "2020-08-26T12:42:55Z")

</div>

> [@yubiuser](#):
>
> maybe you have a good idea how to design the UI to include all the searching, filtering, selecting on desktop and mobile?

Yes, this is needed. Mobile devices lack certain inputs.

In my world, this does not mean that devices with more input capabilities (like a mouse and keyboard) should refrain from offering such features **in addition** just for the sake of everything is impossible even if you have only a fat finger as the sole input.

---

<div class="post-metadata">

### Author: ![Deses](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/deses/32/6887_2.png) [@Deses](https://discourse.pi-hole.net/u/Deses)
#### Post date: [August 26, 2020, 12:49pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/5 "2020-08-26T12:49:36Z")

</div>

> [@yubiuser](#):
>
> There is an open issue ticket on github, maybe you have a good idea how to design the UI to include all the searching, filtering, selecting on desktop and mobile?

The old UI worked fine in both computers and mobile devices, right? I could agree that having to uncheck a box to select the text was a bit clunky, but at least we had full functionality in both types of devices.

---

<div class="post-metadata">

### Author: ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)
#### Post date: [August 26, 2020, 1:23pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/6 "2020-08-26T13:23:31Z")

</div>

We have an open ear (and eye!) for un-clunky suggestions

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [August 26, 2020, 1:32pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/7 "2020-08-26T13:32:51Z")

</div>

> [@Deses](#):
>
> The old UI worked fine in both computers and mobile devices, right? I could agree that having to uncheck a box to select the text was a bit clunky, but at least we had full functionality in both types of devices.

The old UI did not have the ability to filter at all. You can see the steps the development took here:

> [@Explicit Search in Pi-hole Admin Console](https://discourse.pi-hole.net/t/explicit-search-in-pi-hole-admin-console/28893):
>
> When using the Query Log Search field, I can't seem to search explicitly, even with quotation marks. For example I want to filter/search for IP 10.0.1.6, but instead I'm getting 10.0.1.6\*, where the \* is all other numbers as well. Is there a way to do this through the admin console or must I use the terminal? Thanks.

---

<div class="post-metadata">

### Author: ![Deses](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/deses/32/6887_2.png) [@Deses](https://discourse.pi-hole.net/u/Deses)
#### Post date: [August 26, 2020, 3:28pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/8 "2020-08-26T15:28:02Z")

</div>

> [@yubiuser](#):
>
> The old UI did not have the ability to filter at all. You can see the steps the development took here:

We may be talking about different things, but I used to click on a device or a hostname and it filtered just that.

---

<div class="post-metadata">

### Author: ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)
#### Post date: [August 26, 2020, 3:46pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/9 "2020-08-26T15:46:44Z")

</div>

I think I can see the confusion. On the older UI, clicking on a domain (or client) would populate the search box with the domain (or client) clicked. @yubiuser is technically correct, filtering did not exist on the previous UI, rather a shortcut to populating the search box, did.

---

<div class="post-metadata">

### Author: ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)
#### Post date: [August 27, 2020, 9:24am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/10 "2020-08-27T09:24:20Z")

</div>

So we add this check box back but leave it disabled by default?

Mobile users can then tick the box and auto-copying of the stuff into the search field would happen.

---

<div class="post-metadata">

### Author: ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)
#### Post date: [August 27, 2020, 5:20pm UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/11 "2020-08-27T17:20:24Z")

</div>

It's more of an issue of storing state. Any ticks and toggles have to be stored somewhere unless you want to tick and toggle every time you load the panel.

---

<div class="post-metadata">

### Author: ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)
#### Post date: [August 28, 2020, 7:45am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/12 "2020-08-28T07:45:20Z")

</div>

Gave this some thought this morning, and came up with the following proof of concept:

[https://github.com/pi-hole/AdminLTE/pull/1568](https://github.com/pi-hole/AdminLTE/pull/1568)

Should allow both desktop _and_ mobile users to enjoy the new filtering, with or without a keyboard.

Keep in mind, this is still a draft/WIP but just to give an idea.

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [August 28, 2020, 10:20am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/13 "2020-08-28T10:20:02Z")

</div>

Initial testing on dektop and mobile worked very well.

 ![Bildschirmfoto zu 2020-08-28 12-17-29](https://discourse.pi-hole.net/uploads/default/original/3X/6/f/6fdddc7cf0d533a130ce48f9cd9b461d4466becd.png)

**ADD**

Does not go well with the link for "Blocked (regex blacklist)

---

<div class="post-metadata">

### Author: ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)
#### Post date: [August 28, 2020, 10:23am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/14 "2020-08-28T10:23:20Z")

</div>

> [@yubiuser](#):
>
> Does not go well with the link for "Blocked (regex blacklist)

Ah, yes, it probably does not. This was probably the thinking behind the modifier key. Back to the thinking room....

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [August 28, 2020, 10:24am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/15 "2020-08-28T10:24:34Z")

</div>

Can you distinguish if users click directly on the link text or only in the surrounding box?

---

<div class="post-metadata">

### Author: ![PromoFaux](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/promofaux/32/1545_2.png) [@PromoFaux](https://discourse.pi-hole.net/u/PromoFaux)
#### Post date: [August 28, 2020, 10:25am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/16 "2020-08-28T10:25:43Z")

</div>

Yeah I was just thinking something along these lines. One would have to be very accurate with their clicking, which can be a pain on mobile.

---

<div class="post-metadata">

### Author: ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)
#### Post date: [August 28, 2020, 10:29am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/17 "2020-08-28T10:29:05Z")

</div>

> [@PromoFaux](#):
>
> which can be a pain on mobile.

Yeah right...

Adding a small button/icon in the regex box which links to the regex list? Then the easy "default" would be the filtering, and only for detailed regex info users had to aim very precisely.

---

<div class="post-metadata">

### Author: ![Coro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/coro/32/15424_2.png) [@Coro](https://discourse.pi-hole.net/u/Coro)
#### Post date: [August 31, 2020, 9:17am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/18 "2020-08-31T09:17:11Z")

</div>

Keep it as it is. Do not make it harder to use this on the desktop where real research into things may happen.

---

<div class="post-metadata">

### Author: ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)
#### Post date: [September 21, 2020, 9:17am UTC](https://discourse.pi-hole.net/t/how-am-i-supposed-to-filter-the-query-logs-with-a-mobile-phone-browser/37656/19 "2020-09-21T09:17:13Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
