Hi, I think you want to use the rex command here. In my example below, I am taking the leading four octets of src and dst and putting them into new fields named src_after and dst_after. Everything after the first four octets is ignored. All of the stuff in |makeresults and |spath is just for me to build up some fake data using what you provided. The part you want to look at starts with the |rex steps. I hope this helps. | makeresults | eval json="{ \"src\":\"10.0.1.5:50492:X2\", \"dst\":\"8.8.8.8:53:X1\" }" | append [| makeresults | eval json="{ \"src\":\"192.168.1.100:37016:X0\", \"dst\":\"54.81.233.206:443:X1\" }"] | append [| makeresults | eval json="{ \"src\":\"192.168.1.100:38376:X0\", \"dst\":\"104.244.42.130:443:X1\" }"] | append [| makeresults | eval json="{ \"src\":\"192.168.1.100:38611:X0\", \"dst\":\"172.217.132.170:443:X1\" }"] | spath input=json | rex field=src "^(?<src_after>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | rex field=dst "^(?<dst_after>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" | table src src_after dst dst_after
... View more