# Elasticsearch name cannot be empty string error

**URL:** <https://discuss.elastic.co/t/elasticsearch-name-cannot-be-empty-string-error/75187>\
**Category:** Elasticsearch\
**Created:** [February 15, 2017, 12:10pm UTC](https://discuss.elastic.co/t/elasticsearch-name-cannot-be-empty-string-error/75187 "2017-02-15T12:10:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zeeshan\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeeshan_alam/32/94298_2.png) [@Zeeshan\_Alam](https://discuss.elastic.co/u/Zeeshan_Alam)\
**Post date:** [February 15, 2017, 12:10pm UTC](https://discuss.elastic.co/t/elasticsearch-name-cannot-be-empty-string-error/75187/1 "2017-02-15T12:10:27Z")

</div>

I am sending events from **Logstash 5.2.0** to **Elasticsearch 5.2.0** , but some of the events are rejected by elasticsearch and I am getting the following error:

```
[2017-02-15T05: 36: 23,
145][WARN][logstash.outputs.elasticsearch]Failedaction.{
	: status=>400,
	: action=>["index",
	{
		: _id=>nil,
		: _index=>"logstash-pr106659-rtp0-uat-metrics-2017.02.13-1",
		: _type=>"logs",
		: _routing=>nil
	},
	#<LogStash: : Event: 0x7934efaf@data={
		"@timestamp"=>2017-02-13T12: 28: 34.266Z,
		"service"=>"linux-metrics",
		"host"=>"myhost.fmr.com",
		"@version"=>"1",
		"location"=>"OMA",
		"attributes"=>{
			"m.rocana.host.fs.mp.fisc.backup.inodes.free"=>327190.0,
			"m.rocana.host.fs.mp.opt.vormetric.DataSecurityExpert.agent.secfs..sec.inodes.perc_in_use"=>12.698364258,			
			"m.rocana.host.fs.mp.fisc.blocks.free"=>5614588.0,
			"m.rocana.host.fs.mp.opt.blocks.in_use"=>586600.0,
			"m.rocana.host.fs.mp.opt.vormetric.DataSecurityExpert.agent.secfs..sec.inodes.total"=>131072.0,
			"m.rocana.host.fs.mp.tmp.blocks.total"=>524288.0,
			"m.rocana.host.fs.mp.apps.blocks.free"=>48657964.0,
			"m.rocana.host.fs.mp.var.blocks.free"=>5264320.0,
			"m.rocana.host.fs.mp.fisc.tmq.blocks.total"=>3997376.0,
			"m.rocana.host.fs.mp.var.log.inodes.perc_in_use"=>0.44021606445,
			"m.rocana.host.fs.mp.opt.vormetric.DataSecurityExpert.agent.secfs..sec.inodes.in_use"=>16644.0,
			"m.rocana.host.fs.mproot.inodes.free"=>739162.0,
			"m.rocana.host.fs.mp.fisc.backup.inodes.in_use"=>490.0,
			"m.rocana.host.fs.mp.fisc.backup.blocks.total"=>5029504.0,
			"m.rocana.host.fs.mp.opt.vormetric.DataSecurityExpert.agent.secfs..sec.inodes.free"=>114428.0,
			"m.rocana.host.fs.mp.var.crash.inodes.in_use"=>11.0,
			"m.rocana.host.fs.mp.tmp.inodes.in_use"=>15.0,
			"m.rocana.host.fs.mp.fisc.middleware.db_mw.inodes.in_use"=>807398.0,
			"m.rocana.host.fs.mp.opt.vormetric.DataSecurityExpert.agent.secfs..sec.blocks.free"=>1307216.0,
			"m.rocana.host.fs.mp.fisc.blocks.in_use"=>132472.0,
			"m.rocana.host.fs.mp.boot.blocks.total"=>245679.0
		},
		"id"=>"3BUARTQFY2PVLGMGTNAM5ZNXYOEK6BWD77YI6YRWA6SL2NE5BH4Q====",
		"source"=>"",
		"body"=>"",
		"version"=>3,
		"event_type_id"=>107,
		"ts"=>1486988914266
	}>],
	: response=>{
		"index"=>{
			"_index"=>"logstash-pr106659-rtp0-uat-metrics-2017.02.13-1",
			"_type"=>"logs",
			"_id"=>"AVpBWCNua7XAD4eRlmho",
			"status"=>400,
			"error"=>{
				"type"=>"mapper_parsing_exception",
				"reason"=>"failed to parse",
				"caused_by"=>{
					"type"=>"illegal_argument_exception",
					"reason"=>"name cannot be empty string"
				}
			}
		}
	}
}
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 15, 2017, 9:19pm UTC](https://discuss.elastic.co/t/elasticsearch-name-cannot-be-empty-string-error/75187/2 "2017-02-15T21:19:18Z")

</div>

Is there anything in the ES logs at the same time?

---

<div class="post-metadata">

**Author:** ![Zeeshan\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeeshan_alam/32/94298_2.png) [@Zeeshan\_Alam](https://discuss.elastic.co/u/Zeeshan_Alam)\
**Post date:** [February 16, 2017, 6:57am UTC](https://discuss.elastic.co/t/elasticsearch-name-cannot-be-empty-string-error/75187/3 "2017-02-16T06:57:55Z")

</div>

> [@Zeeshan\_Alam](#):
>
> "m.rocana.host.fs.mp.opt.vormetric.DataSecurityExpert.agent.secfs..sec.inodes.perc\_in\_use"

I think this field is the culprit, it is having double dot **secfs..sec**

---

<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:** [March 16, 2017, 6:58am UTC](https://discuss.elastic.co/t/elasticsearch-name-cannot-be-empty-string-error/75187/4 "2017-03-16T06:58:03Z")

</div>

Closed on March 16, 2017, 6:58am UTC

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