Splunk Search

searching for multiple destination ports

allenhau
Engager

I have a search query for:

dest_port=4402

 

I want to include 4404.  what would the syntax for dest_port look like?

Labels (1)
0 Karma
1 Solution

anilchaithu
Builder

@allenhau 

Use either one of the below in your base search

OR command

dest_port=4402 OR dest_port=4404

IN command

dest_port IN (""4402 4404"")

 

View solution in original post

0 Karma

eddy_liang
Path Finder

Works. But how do you clean it up where it returns just a single line to show both ports. It's currently showing multiple lines for each different port.

0 Karma

anilchaithu
Builder

@allenhau 

Use either one of the below in your base search

OR command

dest_port=4402 OR dest_port=4404

IN command

dest_port IN (""4402 4404"")

 

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...