Howdy folks,
I have created a custom data set to return the number of requests per parent domain (i.e. just the values before the country code) using the regexp_matches function. The results are returned within {} braces, is there a way to suppress these in the results?
Here is a sample of the output:
# domain visits 1 {bitdefender.net} 66113 2 {pubnub.com} 9583 3 {doubleclick.net} 9192 4 {serving-sys.com} 6127 5 {adnxs.com} 5700 6 {googlesyndication.com} 4765 7 {bing.com} 4530
Many thanks,
Nathan
Solved! Go to Solution.
Hi Nathan,
Maybe you can use root_main(hostname) to get parent domain.
Regards,
hz
Thanks for the suggestion, I get a no function exists error however. Do you know if I need to cast the hostname as something in particular inside this function?
Cheers,
Nathan
Thanks,
Both of those suggestions work as intended.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1744 | |
1114 | |
760 | |
447 | |
241 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.