from pkg_resources import Requirement, resource_filename
-from . import config
+from logparse import config
def hostname(path): # get the hostname of current server
hnfile = open(path, 'r')
# resolve-domains defined in individual sections of the config take priority over global config
if not fqdn:
- fqdn = config.prefs['resolve-domains']
+ fqdn = config.prefs.get("logparse", "resolve-domains")
if fqdn == 'ip':
return(ip)