The Inner search I renamed the Field ephemeral_Port to Port. When I break down the Searches into the following: index="wawf-prod" (Failed password AND Linux_Server="wawfprodftpd37")
|rename ephemeral_Port as Port
|return 1000 Port This Returns the list of Ports as shown in the above screen shot I sent. When I run the Code below with a hard coded value for the PA_natSourcePort = 20961 It returns a match. the port number 20961 is one of the values returned from the first search that I hard coded to see if It was a values issue. Which some of the values hard code match and some do not. index="palo-test" PA_natDestinationIP=10.63.16.103 AND PA_natSourcePort = 20961 So Something is happening in the PA_natSourcePort = port when the two searches are combined with a sub search. Any ideas why that is? index="palo-test" ( PA_natDestinationIP=10.63.16.103 AND PA_natSourcePort = Port)
[ search index="wawf-prod" (Failed password AND Linux_Server="wawfprodftpd37")
|rename ephemeral_Port as Port
|return 1000 Port ]
| stats count by PA_SourceAddress |sort by count desc | table PA_SourceAddress, Port, PA_natSourcePort, count
... View more