Kibana scripted fields

i have several boolean fields like weekDays.friday.is24HourService, weekDays.saturday.is24HourService in my index.
i am getting the day of week using [doc['@timestamp'].value.dayOfWeek] which returns a numeric value, for ex it returns the value 5 for friday.
i want to replace this numeric value with the day present in in my data. how to do this using scripted fields. please help :slightly_smiling_face:

I'd try something like this. Might want to add a value for unknown key but I doubt that will happen if you are using @timestamp.

1 Like

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