Null reference error in scripted field

My error is this:

[esaggs] > Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"null_pointer_exception","reason":null}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"log_data","node":"iFm60hiuQIS1BcgO9rul6w","reason":{"type":"null_pointer_exception","reason":null}}],"caused_by":{"type":"null_pointer_exception","reason":null,"caused_by":{"type":"null_pointer_exception","reason":null}}},"status":500}

and my scripted field (type string) is this:

return "0.0.0.0";

Super brain-dead test to see if I could return anything and avoid the error. Nope :frowning:
I must be doing something fundamentally wrong...

Thanks for any help or tips! :slight_smile:

Could you share your script ?

That was it :slight_smile:

return "0.0.0.0";

That's all it is!

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