How to create new field after subtracting 2 date time field

I want to create one new field type String in existing index after subtracting two datetime (format - 2023-04-31 23:23:13). It should return 'Type-1' if seconds difference is more than or equal to 180 and should return 'Type-2' if seconds difference is less than 180.

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