Home > Software design >  Kibana: Why i got an error of script value : aggregation_execution_exception?
Kibana: Why i got an error of script value : aggregation_execution_exception?

Time:04-13

I got this error:

An error occurred when loading data. Request error: aggregation_execution_exception, Unsupported script value[0.0], expected a number, date, or boolean in Painless script.

Here is my script field add:

def test = doc['log_data_numerical'];
return test;

I take a number and it returns a number in time format.

Here is my second log for testing the problem: second log and my first log that doesn't work and is created in live: first log.

The problem is when I try to do a Pie with some values (log_data_info1 -> weather & log_data_info2 -> car_mode) the first time i tried to do that with the first log in live but i got that : error pie.

So the problem is log_data_numerical is a string for kibana and not a number but I don't understand why because it takes just a number (0.0, 0, or some other values like 7.9293839).

I tried to do the same but with a log that I create from the first log the second log and it's work: good pie but i don't know why it's take the same values than the first log and in my script field i can change :

def test = doc['log_data_numerical'].value;
return test;

And i can save but normally that would not be possible since there are only numbers.

Edit: here is the type of

  • first log 1
  • second log 2

So please if someone knows why my log_data_numerical in my live stream log isn't considered as a number type and how to fix it I would be very grateful!

CodePudding user response:

Okay, i found the problem. It was from the logstash, i force it to being a number type and not a string.

  • Related