# Timelion not equal

**URL:** https://discuss.elastic.co/t/timelion-not-equal/249171
**Category:** Kibana
**Tags:** timelion
**Created:** [September 18, 2020, 8:16pm UTC](https://discuss.elastic.co/t/timelion-not-equal/249171 "2020-09-18T20:16:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![prophoto](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@prophoto](https://discuss.elastic.co/u/prophoto)
#### Post date: [September 18, 2020, 8:16pm UTC](https://discuss.elastic.co/t/timelion-not-equal/249171/1 "2020-09-18T20:16:09Z")

</div>

Here is my current Timelion query. How do I EXCLUDE lines? I'd like to exclude apache log lines that have source.ip ::1 and destination.domain localhost. Thanks.

```auto
.es(q='event.dataset:apache.access AND agent.name:server7').label(server7).color(red),
.es(q='event.dataset:apache.access AND agent.name:server8').label(server8).color(green),
.es(q='event.dataset:apache.access AND agent.name:server9').label(server9).color(#0000FF)
.title('Server Requests')

```

---

<div class="post-metadata">

### Author: ![prophoto](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@prophoto](https://discuss.elastic.co/u/prophoto)
#### Post date: [September 21, 2020, 4:39pm UTC](https://discuss.elastic.co/t/timelion-not-equal/249171/2 "2020-09-21T16:39:20Z")

</div>

Bueller?

---

<div class="post-metadata">

### Author: ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)
#### Post date: [September 24, 2020, 7:26pm UTC](https://discuss.elastic.co/t/timelion-not-equal/249171/3 "2020-09-24T19:26:26Z")

</div>

Does this work?

```auto
event.dataset:apache.access AND agent.name:server7 AND NOT source.ip:1 AND NOT destination.domain:localhost

```

---

<div class="post-metadata">

### Author: ![prophoto](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@prophoto](https://discuss.elastic.co/u/prophoto)
#### Post date: [September 30, 2020, 8:36pm UTC](https://discuss.elastic.co/t/timelion-not-equal/249171/4 "2020-09-30T20:36:07Z")

</div>

Wow that was too easy. Wish it was in the documentation! I spent hours looking for that!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 28, 2020, 8:36pm UTC](https://discuss.elastic.co/t/timelion-not-equal/249171/5 "2020-10-28T20:36:10Z")

</div>

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