# Logstash grok filter not creating fields in ES

**URL:** https://discuss.elastic.co/t/logstash-grok-filter-not-creating-fields-in-es/153556
**Category:** Logstash
**Created:** [October 23, 2018, 9:23am UTC](https://discuss.elastic.co/t/logstash-grok-filter-not-creating-fields-in-es/153556 "2018-10-23T09:23:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nsivabalan](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nsivabalan](https://discuss.elastic.co/u/nsivabalan)
#### Post date: [October 23, 2018, 9:23am UTC](https://discuss.elastic.co/t/logstash-grok-filter-not-creating-fields-in-es/153556/1 "2018-10-23T09:23:58Z")

</div>

Hi, Can someone help with grok pattern for following log format? I had written my own with help of grok debugger but somehow it's not creating the fields in the ES.

Error log:

[Sun Sep 09 04:00:36.495025 2018] [ssl:info] [pid 23305:tid 139874015254272] [client 10.0.252.243:41216] AH01964: Connection to child 293 established (server 127.0.0.1:9440)

Access log:

10.0.252.12 - - [28/Sep/2018:13:55:58 +0000] "POST /v3\_balanced/remote\_rpc\_request?service\_name=xxxxx.yyyy.uploader.InsightsReceiverRpcSvc&port=2028&base\_url=/rpc&timeout\_ms=60000 HTTP/1.1" 200 78

Request log:

10.0.252.12 10.0.252.12 10.0.252.12 HTTP/1.1 - POST 200 [06/Sep/2018:19:00:50 +0000] - /v3\_balanced/remote\_rpc\_request "-" "ECDHE-RSA-AES256-GCM-SHA384"

Thanks in advance,  
Siva

---

<div class="post-metadata">

### Author: ![nsivabalan](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nsivabalan](https://discuss.elastic.co/u/nsivabalan)
#### Post date: [October 23, 2018, 7:16pm UTC](https://discuss.elastic.co/t/logstash-grok-filter-not-creating-fields-in-es/153556/2 "2018-10-23T19:16:36Z")

</div>

The below syslog pattern not creating fields in the ES. I have tested this with grok debugger as well.

```
root@siva-es:/etc/logstash/conf.d# cat 10-syslog-filter.conf 
filter {
  if [type] == "syslog" {
    grok {
      match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
      add_field => ["received_at", "%{@timestamp}"]
      add_field => ["received_from", "%{host}"]
    }
    syslog_pri { }
    date {
      match => ["syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]
    }
  }
}

```

Can someone help me here?`Preformatted text`

---

<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: [November 20, 2018, 7:16pm UTC](https://discuss.elastic.co/t/logstash-grok-filter-not-creating-fields-in-es/153556/3 "2018-11-20T19:16:36Z")

</div>

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