Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to index with logstash with current master #11458

Closed
rmuir opened this issue Jun 2, 2015 · 15 comments · Fixed by #11459
Closed

unable to index with logstash with current master #11458

rmuir opened this issue Jun 2, 2015 · 15 comments · Fixed by #11459

Comments

@rmuir
Copy link
Contributor

rmuir commented Jun 2, 2015

This was working for me as of a few weeks ago. but now I hit this:

Got error to send bulk of actions to elasticsearch server at localhost : [400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Malformed action/metadata line [1], expected a simple value for field [_id] but found [VALUE_NULL]"}],"type":"illegal_argument_exception","reason":"Malformed action/metadata line [1], expected a simple value for field [_id] but found [VALUE_NULL]"},"status":400} {:level=>:error}

I'm using the simple config here: https://github.com/peterskim12/elk-index-size-tests

@rmuir rmuir added the >bug label Jun 2, 2015
@s1monw
Copy link
Contributor

s1monw commented Jun 2, 2015

isn't this a logstash issue in the first place? I mean null is not a valid id?

@rmuir
Copy link
Contributor Author

rmuir commented Jun 2, 2015

I don't know anything about the particulars, I just wanted to raise the issue. I'm using logstash 1.5 fwiw.

@ph
Copy link
Contributor

ph commented Jun 2, 2015

@rmuir When it was working you were running logstash 1.4.2?

@rmuir
Copy link
Contributor Author

rmuir commented Jun 2, 2015

When i started doing index size tests with master, I started with a 1.5 release candidate but upgraded to the official release.

Since then i semi-regularly index that test dataset with logstash into es master, because its a little sample index for debugging, etc. (in this case, I am looking at our stats api so i wanted some data there)

@ph
Copy link
Contributor

ph commented Jun 2, 2015

@rmuir I'll have a look, lets keep this issue open, if needed I'll migrate it.

@s1monw
Copy link
Contributor

s1monw commented Jun 2, 2015

@ph this likely caused by #10977 since we now barf if there is an invalid value

@s1monw
Copy link
Contributor

s1monw commented Jun 2, 2015

btw. this is also in 1.6 so we better check if we wanna keep it there since it seems to break logstash?

@tlrx
Copy link
Member

tlrx commented Jun 2, 2015

#11331 throws an exception if a "metadata" field (like _id , _type etc) contains a null value. Let me know if this must be fixed on ES side.

@colinsurprenant
Copy link

we should see if this is a regression on the logstash-output-elasticsearch plugin /cc @talevy .
I suggest we test with 1.4.2 to see if we can reproduce and this will tell us if this is a new behaviour introduced in the plugin. Note that there's been a handful of point releases of logstash-output-elasticsearch in the last weeks so it can also be a regression within the 1.5.0 release cycle.

@clintongormley
Copy link

@tlrx i think that null values should be ignored here

@ph
Copy link
Contributor

ph commented Jun 2, 2015

@rmuir @s1monw I've tested with 1.5.0 and I can reproduce the bug, this also break logstash 1.4.2.
Even if it wasn't the intended behavior, this feel like a bit breaking for a 1.x release?

@ph
Copy link
Contributor

ph commented Jun 2, 2015

Easy fix on our side we can remove the null keys before doing the bulk request.

@clintongormley
Copy link

@ph we should just fix this before 1.6, to ignore null values.

@ph
Copy link
Contributor

ph commented Jun 2, 2015

@clintongormley 👍

@tlrx
Copy link
Member

tlrx commented Jun 2, 2015

This will be fixed by #11459, sorry for the regression

tlrx added a commit to tlrx/elasticsearch that referenced this issue Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants