# Syslog not being picked up even though it's tagged 'syslog'

**URL:** <https://discuss.elastic.co/t/syslog-not-being-picked-up-even-though-its-tagged-syslog/106847>\
**Category:** Logstash\
**Created:** [November 8, 2017, 10:27am UTC](https://discuss.elastic.co/t/syslog-not-being-picked-up-even-though-its-tagged-syslog/106847 "2017-11-08T10:27:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfchrisgleason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sfchrisgleason/32/21782_2.png) [@sfchrisgleason](https://discuss.elastic.co/u/sfchrisgleason)\
**Post date:** [November 8, 2017, 10:27am UTC](https://discuss.elastic.co/t/syslog-not-being-picked-up-even-though-its-tagged-syslog/106847/1 "2017-11-08T10:27:27Z")

</div>

Good morning all.

I am still pretty new to the elastic stack. I've used it on small scales and it worked great, but I'm getting ready to roll out a much larger aggregation model and wanted to be sure I'm understanding why things are behaving the way they are.

I've currently got beats and syslog systems shipping to to a dev ELK stack with logstash.

I have several systems shipping syslog fine. I added a couple xen hypervisors the other day and they did not show up in the syslog index via Kibana. I checked via tcpdump and the packets were arriving so I created an else statement in the input syslog filter and sent them to a lostandfound index and voila, they are there. Otherwise they are totally normal in Kibana once I get ahold of them and they do not have a grokparsefailure tag.

When I look at them they do have a 'syslog' tag so I'm wondering why they are not being sent to the syslog index?

Below are my syslog filter and es-output.

Thanks ahead of time for any help!

# SYSLOG FILTER

```
input {
  syslog {
     port => 1514
     tags => "syslog"
  }
}
filter {
  if [type] == "syslog" {
    mutate {
    }
    grok {
      match => ["message", "<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" ]
    }
  }
  else {
    mutate { add_tag => ["lnf"] }
  }
}
output {
  if [type] == "syslog" and "_grokparsefailure" in [tags] {
    file { path => "/var/log/failed_syslog_events-%{+YYYY-MM-dd}" }
  }
}

```

# ES OUTPUT

```
output {
  if "beats" in [tags] {
    elasticsearch {
      hosts => ["x.x.x.x:9200"]
      sniffing => false
      manage_template => false
      index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
      #index => "test1-%{+YYY.MM.dd}"
      document_type => "%{[@metadata][type]}"
    }
  }

  if "syslog" in [tags] {
    elasticsearch {
    hosts => ["x.x.x.x:9200"]
    sniffing => false
    index => "syslog-%{+YYYY.MM.dd}"
    }
  }

  if "esx" in [logsource] {
    elasticsearch {
    hosts => ["x.x.x.x:9200"]
    sniffing => false
    index => "esx-%{+YYYY.MM.dd}"
    }
  }

  if "lnf" in [tags] {
    elasticsearch {
    hosts => ["x.x.x.x:9200"]
    sniffing => false
    index => "lnf-%{+YYYY.MM.dd}"
    }
  }

}
```

---

<div class="post-metadata">

**Author:** ![sfchrisgleason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sfchrisgleason/32/21782_2.png) [@sfchrisgleason](https://discuss.elastic.co/u/sfchrisgleason)\
**Post date:** [November 8, 2017, 9:34pm UTC](https://discuss.elastic.co/t/syslog-not-being-picked-up-even-though-its-tagged-syslog/106847/2 "2017-11-08T21:34:17Z")

</div>

Oddly enough the system stopped showing any logs entries the second it turned midnight. I did notice the entries are 8 hours behind in the histogram, but I'm in Ireland and those servers are in California.

---

<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 6, 2017, 9:34pm UTC](https://discuss.elastic.co/t/syslog-not-being-picked-up-even-though-its-tagged-syslog/106847/3 "2017-12-06T21:34:32Z")

</div>

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