URL Toolbox (UTBox) is a set of building blocks for Splunk specially created for URL manipulation. UTBox has been created to be modular, easy to use and easy to deploy in any Splunk environments.
Example: 1.something.com.local
This is not a valid domain, however, since "com" is in the middle of the string, it returns "com" as ut_tld and "l.com" as ut_domain. It should return None instead.
Suggested fix:
In ut_parse_lib.py, under the findTLD() function, add the following check right before returning TLD:
if (len(items)>0 and items[-1]!=parts[-1]):
# the TLD is not found at the end of the string, not a valid TLD
TLD=None
Example: 1.something.com.local This is not a valid domain, however, since "com" is in the middle of the string, it returns "com" as ut_tld and "l.com" as ut_domain. It should return None instead.
Suggested fix: In ut_parse_lib.py, under the findTLD() function, add the following check right before returning TLD: