# Logstash showing logs send to Kibana with yellow index and mismatched pre-populated fields mapping

**URL:** <https://discuss.elastic.co/t/logstash-showing-logs-send-to-kibana-with-yellow-index-and-mismatched-pre-populated-fields-mapping/185975>\
**Category:** Logstash\
**Created:** [June 16, 2019, 8:39pm UTC](https://discuss.elastic.co/t/logstash-showing-logs-send-to-kibana-with-yellow-index-and-mismatched-pre-populated-fields-mapping/185975 "2019-06-16T20:39:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asad\_ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asad_ali/32/47894_2.png) [@asad\_ali](https://discuss.elastic.co/u/asad_ali)\
**Post date:** [June 16, 2019, 8:39pm UTC](https://discuss.elastic.co/t/logstash-showing-logs-send-to-kibana-with-yellow-index-and-mismatched-pre-populated-fields-mapping/185975/1 "2019-06-16T20:39:35Z")

</div>

Using the following version for:-

logstash 7.1.1  
Kibana "7.1.1  
elasticsearch: 7.1.1

\*\*My \*\*  
**logstash.conf**

```
input {
  beats { port => 5044}
}

filter {
  grok {
  match => [
        "message", "%{TIMESTAMP_ISO8601:timestamp_sting}%{SPACE}%{GREEDYDATA:line}"
 ]
}

date {
        match => ["timestamp_sting", "ISO8601"]
 }

mutate {
        remove_field => [message, timestamp_sting]
 }
}

output {
  elasticsearch {
    hosts => ["http://localhost:9200"]
# index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
  # user => "elastic"
   # password => "changeme"
  }
stdout {
        codec => rubydebug
        }
}

```

\*\*My \*\*  
**logstash.yml**

> node.name: test  
> path.logs: /root/logstash-7.1.1/LOG

\*\*My \*\*  
**filebeat.yml**

```
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /root/filebeat-7.1.1-linux-x86_64/sample.log
  fields_under_root: true
  fields:
    type: log
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
setup.kibana:
output.logstash:
 hosts: ["localhost:5044"]
processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

```

**Logs of logstash**

> [2019-06-16T18:20:50,028][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.1.1"}  
> [2019-06-16T18:20:53,027][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
> [2019-06-16T18:20:53,249][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://localhost:9200/](http://localhost:9200/)"}  
> [2019-06-16T18:20:53,330][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>7}  
> [2019-06-16T18:20:53,332][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document \_type {:es\_version=\>7}  
> [2019-06-16T18:20:53,352][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::Elasticsearch", :hosts=\>["[http://localhost:9200](http://localhost:9200)"]}  
> [2019-06-16T18:20:53,372][INFO][logstash.outputs.elasticsearch] Using default mapping template  
> [2019-06-16T18:20:53,455][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"index\_patterns"=\>"logstash-_", "version"=\>60001, "settings"=\>{"index.refresh\_interval"=\>"5s", "number\_of\_shards"=\>1, "index.lifecycle.name"=\>"logstash-policy", "index.lifecycle.rollover\_alias"=\>"logstash"}, "mappings"=\>{"dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date"}, "@version"=\>{"type"=\>"keyword"}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}  
> [2019-06-16T18:20:53,562][INFO][logstash.javapipeline] Starting pipeline {:pipeline\_id=\>"test", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>500, :thread=\>"#\<Thread:0x43ed32fa run\>"}  
> [2019-06-16T18:20:54,173][INFO][logstash.inputs.beats] Beats inputs: Starting input listener {:address=\>"0.0.0.0:5044"}  
> [2019-06-16T18:20:54,180][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=\>"test"}  
> [2019-06-16T18:20:54,232][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:test], :non\_running\_pipelines=\>}  
> [2019-06-16T18:20:54,280][INFO][org.logstash.beats.Server] Starting server on port: 5044  
> [2019-06-16T18:20:54,492][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

**logs of filebeat**

> **[JustBeamIt - file transfer made easy](https://justbeamit.com/uhq8u)**
>
> file transfer made easy

**Troubleshooting**

```
labuser@elk:/root/filebeat-7.1.1-linux-x86_64/logs$ curl http://localhost:9200/_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana_task_manager FZGzMH03R-2s5p1W-TT0pg 1 0 2 0 45.5kb 45.5kb
green open .kibana_1 oxNrrLMIS2OkCrTU9aaycg 1 0 6 2 44.2kb 44.2kb
yellow open logstash pOBB-7K0RuqYAaRclHjFBg 1 1 1 0 17.7kb 17.7kb

labuser@elk:/root/filebeat-7.1.1-linux-x86_64/logs$ curl http://localhost:9200/_node/stats/pipelines
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [_node]","resource.type":"index_expression","resource.id":"_node","index_uuid":"_na_","index":"_node"}],"type":"index_not_found_exception","reason":"no such index [_node]","resource.type":"index_expression","resource.id":"_node","index_uuid":"_na_","index":"_node"},"status":404}labuser@elk:/root/filebeat-7.1.1-linux-x86_64/logs$

```

**sample.log**

```
2008-09-15T11:30:00Z alpha beta
2008-09-15T12:18:00Z charlie r
2008-09-15T13:20:00Z moth ff
2008-09-15T14:40:00Z seven eight

```

**stdout logstash**

> **[JustBeamIt - file transfer made easy](https://justbeamit.com/tgb4a)**
>
> file transfer made easy

**elasticsearch debug**

> **[JustBeamIt - file transfer made easy](https://justbeamit.com/te7jq)**
>
> file transfer made easy

---

<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:** [July 14, 2019, 8:39pm UTC](https://discuss.elastic.co/t/logstash-showing-logs-send-to-kibana-with-yellow-index-and-mismatched-pre-populated-fields-mapping/185975/2 "2019-07-14T20:39:47Z")

</div>

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