Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log-courier: proper configuration with confd #2

Open
icc-bloe opened this issue Mar 31, 2015 · 0 comments
Open

log-courier: proper configuration with confd #2

icc-bloe opened this issue Mar 31, 2015 · 0 comments

Comments

@icc-bloe
Copy link
Contributor

To avoid malformed JSON file due to a trailing comma at the end of the server entries currently there is an empty server ("") set in the configuration file.
Log-courier does not crash because of this but it complains repeadeatly about incorrect set port:

Transport init failed: Invalid hostport given:

The problem with confd:

{
    "server1:port1",
    "server2:port2",
}

because it is defined like:

{
    'foreach server print' -> $servername:$port ,
}

Should be:

{
    "server1:port1",
    "server2:port2"
}

Current workaround:

{
    "server1:port1",
    "server2:port2",
    ""
}

because:

{
    'foreach server print' -> $servername:$port ,
    ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant