# How can I filter out logs in the termial?

**URL:** <https://discuss.elastic.co/t/how-can-i-filter-out-logs-in-the-termial/209318>\
**Category:** Elasticsearch\
**Created:** [November 25, 2019, 2:01pm UTC](https://discuss.elastic.co/t/how-can-i-filter-out-logs-in-the-termial/209318 "2019-11-25T14:01:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishv](https://avatars.discourse-cdn.com/v4/letter/i/4da419/32.png) [@ishv](https://discuss.elastic.co/u/ishv)\
**Post date:** [November 25, 2019, 2:01pm UTC](https://discuss.elastic.co/t/how-can-i-filter-out-logs-in-the-termial/209318/1 "2019-11-25T14:01:54Z")

</div>

I'm using Elasticsearch in my Node.js app - is there any possibility to filter out the logs that are showing in the terminal? For example, show only errors, warnings.

 ![57](https://us1.discourse-cdn.com/elastic/original/3X/3/0/30084a73046bb9ac2df65d46e43953857b660b55.png)  
I'm running the application via docker-compose and the following env variable didn't work:

`- logger.action.level=error`

**docker-compose.yml:**

```
   elasticsearch:
        container_name: elasticsearch
        image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
        volumes:
            - esdata:/usr/share/elasticsearch/data
        environment:
            - logger.action.level=error
            - discovery.type=single-node
        ports:
            - 9200:9200
            - 9300:9300
        networks: 
            - elastic
```

---

<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:** [December 23, 2019, 2:02pm UTC](https://discuss.elastic.co/t/how-can-i-filter-out-logs-in-the-termial/209318/2 "2019-12-23T14:02:15Z")

</div>

Closed on December 23, 2019, 2:02pm UTC

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