# Logstash sending slowlog to emails?

**URL:** <https://discuss.elastic.co/t/logstash-sending-slowlog-to-emails/85050>\
**Category:** Logstash\
**Created:** [May 9, 2017, 9:14am UTC](https://discuss.elastic.co/t/logstash-sending-slowlog-to-emails/85050 "2017-05-09T09:14:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaswanth](https://avatars.discourse-cdn.com/v4/letter/y/94ad74/32.png) [@Yaswanth](https://discuss.elastic.co/u/Yaswanth)\
**Post date:** [May 9, 2017, 9:14am UTC](https://discuss.elastic.co/t/logstash-sending-slowlog-to-emails/85050/1 "2017-05-09T09:14:09Z")

</div>

Hi,

Slowlog:

```
    [2016-03-23 06:43:47,231][DEBUG][index.search.slowlog.fetch] took[5.8ms], took_millis[5], types[talk], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"tags":"Java"}}}], extra_source[],
    [2016-03-23 06:43:47,231][DEBUG][index.search.slowlog.fetch] took[10.8ms], took_millis[5], types[talk], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"tags":"Java"}}}], extra_source[],
    [2016-03-23 06:43:47,231][DEBUG][index.search.slowlog.fetch] took[95.8ms], took_millis[5], types[talk], stats[], search_type[QUERY_THEN_FETCH], total_shards[5], source[{"query":{"match":{"tags":"Java"}}}], extra_source[],

```

I need to send the above slowlogs that are having `took[>50ms]` to my gmail is it possible using logstash?

These logs are present in different servers in different locations and i want to catch them all before doing the above `took` operation ? Is it possible?

Thanks

---

<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:** [June 6, 2017, 9:16am UTC](https://discuss.elastic.co/t/logstash-sending-slowlog-to-emails/85050/2 "2017-06-06T09:16:40Z")

</div>

Closed on June 6, 2017, 9:16am UTC

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