Is there a way to dynamically set the host name to read from a file? For example, instead of using the [default] host =xxxxx from inputs.conf, I'd like to get it from a config file:
/some/directory/foo.conf
that contains a host of:
ID = foo001
I've seen resources of setting host name based on regex of filenames but that's not exactly what i need. I need to read the host name from within the file.I'm thinking of possible alternatives but if this is already existing it would help a lot. Thanks.
↧