if windows of operating system then if exists folder "C:\Program Files\SplunkUniversalForwarder"then if exists file "C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf"then if NOT
(
computer name as lowercase is substring after "= " of line whose
(
it starts with "host = "
)
of file "C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf" as lowercase
)
then substring after "= " of line whose
(
it starts with "host = "
)
of file "C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf" as lowercase else computer name else computer name else computer name else if exists folder "/opt/splunkforwarder"then if exists file "/opt/splunkforwarder/etc/system/local/inputs.conf"then if NOT
(
computer name as lowercase is substring after "= " of line whose
(
it starts with "host = "
)
of file "/opt/splunkforwarder/etc/system/local/inputs.conf" as lowercase
)
then substring after "= " of line whose
(
it starts with "host = "
)
of file "/opt/splunkforwarder/etc/system/local/inputs.conf" as lowercase else computer name else computer name else computer name
if windows of operating system then if exists folder "C:\Program Files\SplunkUniversalForwarder"then if exists file "C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf"then if NOT (computer name as lowercase is substring after "= " of line whose (it starts with "host = ") of file "C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf" as lowercase) then substring after "= " of line whose (it starts with "host = ") of file "C:\Program Files\SplunkUniversalForwarder\etc\system\local\inputs.conf" as lowercase else computer name else computer name else computer name else if exists folder "/opt/splunkforwarder"then if exists file "/opt/splunkforwarder/etc/system/local/inputs.conf"then if NOT (computer name as lowercase is substring after "= " of line whose (it starts with "host = ") of file "/opt/splunkforwarder/etc/system/local/inputs.conf" as lowercase) then substring after "= " of line whose (it starts with "host = ") of file "/opt/splunkforwarder/etc/system/local/inputs.conf" as lowercase else computer name else computer name else computer name