How to create a visualization based on a unique count of an IP field but excluding port number?

Hello,

I need to create a visualization based on unique count of IPs, however the field available in kibana is in the following format:

xx.xx.xx.xx:xxxx

I would like to know if through formulas (fe) I have a way to calculate the unique count fo the IPs but excluding the last part ":xxxx".

Thanks in advance.

Hi, I don't know if there's a perfect solution, but you could create a new field containing the ip in the format you want.
I have two solutions in mind:

1 Like