{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/chronograf/issues/4695","repository_url":"https://api.github.com/repos/influxdata/chronograf","labels_url":"https://api.github.com/repos/influxdata/chronograf/issues/4695/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/chronograf/issues/4695/comments","events_url":"https://api.github.com/repos/influxdata/chronograf/issues/4695/events","html_url":"https://github.com/influxdata/chronograf/issues/4695","id":376306056,"node_id":"MDU6SXNzdWUzNzYzMDYwNTY=","number":4695,"title":"TypeError: Cannot read property 'color' of undefined","user":{"login":"schnoberts1","id":10029362,"node_id":"MDQ6VXNlcjEwMDI5MzYy","avatar_url":"https://avatars2.githubusercontent.com/u/10029362?v=4","gravatar_id":"","url":"https://api.github.com/users/schnoberts1","html_url":"https://github.com/schnoberts1","followers_url":"https://api.github.com/users/schnoberts1/followers","following_url":"https://api.github.com/users/schnoberts1/following{/other_user}","gists_url":"https://api.github.com/users/schnoberts1/gists{/gist_id}","starred_url":"https://api.github.com/users/schnoberts1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnoberts1/subscriptions","organizations_url":"https://api.github.com/users/schnoberts1/orgs","repos_url":"https://api.github.com/users/schnoberts1/repos","events_url":"https://api.github.com/users/schnoberts1/events{/privacy}","received_events_url":"https://api.github.com/users/schnoberts1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-01T08:55:59Z","updated_at":"2018-11-01T09:51:33Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nI have a logstash deployment that consumes syslog and generates measurements into influx. This all works great. However, I also want to feed the syslog into influx for viewing in the log viewer in Chronograf. The problem I find is that I'm not entirely sure what Chronograf is expecting schema wise. I've looked at the Telegraf syslog module to work this out, but am failing as my syslog measurement results in the following JavaScript console log:\r\n\r\n```\r\napp.c626c8d812abadc2448d.js:210 TypeError: Cannot read property 'color' of undefined\r\n    at n.cellRenderer (app.c626c8d812abadc2448d.js:239)\r\n    at S (app.c626c8d812abadc2448d.js:32)\r\n    at t.value (app.c626c8d812abadc2448d.js:32)\r\n    at t.value (app.c626c8d812abadc2448d.js:32)\r\n    at updateClassInstance (app.c626c8d812abadc2448d.js:210)\r\n    at beginWork (app.c626c8d812abadc2448d.js:210)\r\n    at a (app.c626c8d812abadc2448d.js:210)\r\n    at o (app.c626c8d812abadc2448d.js:210)\r\n    at E (app.c626c8d812abadc2448d.js:210)\r\n    at b (app.c626c8d812abadc2448d.js:210)\r\nbr @ app.c626c8d812abadc2448d.js:210\r\napp.c626c8d812abadc2448d.js:1 TypeError: Cannot read property 'color' of undefined\r\n    at n.cellRenderer (app.c626c8d812abadc2448d.js:239)\r\n    at S (app.c626c8d812abadc2448d.js:32)\r\n    at t.value (app.c626c8d812abadc2448d.js:32)\r\n    at t.value (app.c626c8d812abadc2448d.js:32)\r\n    at updateClassInstance (app.c626c8d812abadc2448d.js:210)\r\n    at beginWork (app.c626c8d812abadc2448d.js:210)\r\n    at a (app.c626c8d812abadc2448d.js:210)\r\n    at o (app.c626c8d812abadc2448d.js:210)\r\n    at E (app.c626c8d812abadc2448d.js:210)\r\n    at b (app.c626c8d812abadc2448d.js:210)\r\n```\r\nI am guessing this is a mismatch between the hardcoded expectations Chronograf has of the syslog measurement schema and what I'm generating but it's hard to tell as the error message and log are very hard to interpret. Here's my schema: \r\n\r\n```\r\nname: syslog\r\n------------\r\nfieldKey\tfieldType\r\nfacility_code\tstring\r\nmessage\t\tstring\r\nmsgid\t\tstring\r\nprocid\t\tstring\r\nseverity_code\tstring\r\nversion\t\tstring\r\n\r\nname: syslog\r\n------------\r\nfieldKey\tfieldType\r\nfacility_code\tstring\r\nmessage\t\tstring\r\nmsgid\t\tstring\r\nprocid\t\tstring\r\nseverity_code\tstring\r\nversion\t\tstring\r\n\r\n```\r\n\r\nSo bug: Chronograf should present a correctly formatted message explaining the actual underlying root cause. \r\nQuestion: What schema is Chronograf hardcoded to assume? \r\n\r\nThanks for you help, \r\n\r\nAndy\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/influxdata/chronograf/issues/comments/434989263","html_url":"https://github.com/influxdata/chronograf/issues/4695#issuecomment-434989263","issue_url":"https://api.github.com/repos/influxdata/chronograf/issues/4695","id":434989263,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDk4OTI2Mw==","user":{"login":"schnoberts1","id":10029362,"node_id":"MDQ6VXNlcjEwMDI5MzYy","avatar_url":"https://avatars2.githubusercontent.com/u/10029362?v=4","gravatar_id":"","url":"https://api.github.com/users/schnoberts1","html_url":"https://github.com/schnoberts1","followers_url":"https://api.github.com/users/schnoberts1/followers","following_url":"https://api.github.com/users/schnoberts1/following{/other_user}","gists_url":"https://api.github.com/users/schnoberts1/gists{/gist_id}","starred_url":"https://api.github.com/users/schnoberts1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnoberts1/subscriptions","organizations_url":"https://api.github.com/users/schnoberts1/orgs","repos_url":"https://api.github.com/users/schnoberts1/repos","events_url":"https://api.github.com/users/schnoberts1/events{/privacy}","received_events_url":"https://api.github.com/users/schnoberts1/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T09:51:33Z","updated_at":"2018-11-01T09:51:33Z","author_association":"NONE","body":"... I realise that the logstash syslog_pri mappings don't match the versions in https://github.com/influxdata/go-syslog/blob/develop/rfc5424/syslog_message.go so I've fixed that and now I'm further. I note that hitting refresh repeatedly still causes errors, but there different so I'll put them under a different issue. Chronograf does seem pretty unstable. \r\n\r\nThe only issue I have now is inferring the format of the Timestamp field from the code. "}}
{"actor":{"display_login":"schnoberts1"}}