Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to extract the host name and database name

$
0
0
Hi, I would like to extract the Host Name and Database Name from the below string. URL : jdbc:sqlserver://WBMSSQLOPSD1:5800_databaseName=OPSActivities_dev search | rex field=Host "(sqlserver:..\s?(?[^:]+))" Above regex extracts the Host name, I would like to extract database name as well. Please help. Expected output `WBMSSQLOPSD1:OPSActivities_dev` Thanks, Dhana

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>