create a splunk query to search for urls with just ip addresses
- User
create a splunk query to search for urls with just ip addresses
- Assistant
To search for URLs with just IP addresses in Splunk, you can use the following Splunk query:
codesourcetype=access_combined (url="http://*.*.*.*" OR url="https://*.*.*.*")This query will search for URLs that contain an IP address in the format http://x.x.x.x or https://x.x.x.x. You can adjust the IP address pattern (x.x.x.x) to match the specific format of the IP addresses you are looking for.
- User
splunk query with regex for ip address
- Assistant
To search for URLs with just IP addresses using regular expression in Splunk, you can use the following query:
codesourcetype=access_combined url= | regex url="https?://(?:[0-9]{1,3}\.){3}[0-9]{1,3}"This query uses a regular expression to match URLs that start with http:// or https:// followed by an IP address in the format xxx.xxx.xxx.xxx. You can adjust the regular expression pattern to match the specific format of the IP addresses you are looking for.