# Monitoring the logstash postfix queue

**URL:** <https://discuss.elastic.co/t/monitoring-the-logstash-postfix-queue/280986>\
**Category:** Logstash\
**Created:** [August 11, 2021, 5:16am UTC](https://discuss.elastic.co/t/monitoring-the-logstash-postfix-queue/280986 "2021-08-11T05:16:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaPBaJIOJI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kapbajioji/32/79243_2.png) [@KaPBaJIOJI](https://discuss.elastic.co/u/KaPBaJIOJI)\
**Post date:** [August 11, 2021, 5:16am UTC](https://discuss.elastic.co/t/monitoring-the-logstash-postfix-queue/280986/1 "2021-08-11T05:16:30Z")

</div>

Hi all, mb its stupid idei, but i want monitoring postfix queue .  
I write in file "data", "hostname", "count", how can I transfer this data to elastic?  
at the moment, i am parse postfix logs, thanks to [GitHub - whyscream/postfix-grok-patterns: Logstash configuration and grok patterns for parsing postfix](https://github.com/whyscream/postfix-grok-patterns).  
And i add in filter logstash

```auto
filter {
    grok {
          match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST} %{DATA:program}(?:\[%{POSINT}\])?: %{GREEDYDATA:message}" }
          match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{HOSTNAME} %{NUMBER:postfix_queue}" }
          overwrite => ["timestamp", "message"]
   }

```

`match => { "message" => "%{SYSLOGTIMESTAMP:timestamp} %{HOSTNAME} %{NUMBER:postfix_queue}" }`  
add in filebeat.yml  
` - /var/log/postfix_queue.log`  
I understand that now need to create a new field in the postfix\_queue index?

---

<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:** [September 8, 2021, 5:16am UTC](https://discuss.elastic.co/t/monitoring-the-logstash-postfix-queue/280986/2 "2021-09-08T05:16:44Z")

</div>

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