logdna / logdna-agent

LogDNA Agent streams from log files to your LogDNA account. Works with Linux, Windows, and macOS Servers
https://logdna.com
MIT License
138 stars 55 forks source link

Agent doesn't work if hostname is number #40

Closed krazik closed 6 years ago

krazik commented 6 years ago

logdna.conf

hostname=123456789

error:

[180215 15:37:50] Auth error: 500: {"error":"TypeError: req.params.hostname.split is not a function","code":"ServerError","status":"error"}

adding a alpha letter to the hostname will solve problem. but probably should consider casting value to string if you're gonna split on it.

👍

leeliu commented 6 years ago

We've added this as a bug internally awhile back when you've added this issue. Forgot to update here.