{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry-community/firehose-to-syslog/issues/14","labels_url":"https://api.github.com/repos/cloudfoundry-community/firehose-to-syslog/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry-community/firehose-to-syslog/issues/14/comments","events_url":"https://api.github.com/repos/cloudfoundry-community/firehose-to-syslog/issues/14/events","html_url":"https://github.com/cloudfoundry-community/firehose-to-syslog/issues/14","id":66292003,"number":14,"title":"source_instance is always 0 for RTR LogMessages","user":{"login":"mrdavidlaing","id":227505,"avatar_url":"https://avatars.githubusercontent.com/u/227505?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdavidlaing","html_url":"https://github.com/mrdavidlaing","followers_url":"https://api.github.com/users/mrdavidlaing/followers","following_url":"https://api.github.com/users/mrdavidlaing/following{/other_user}","gists_url":"https://api.github.com/users/mrdavidlaing/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdavidlaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdavidlaing/subscriptions","organizations_url":"https://api.github.com/users/mrdavidlaing/orgs","repos_url":"https://api.github.com/users/mrdavidlaing/repos","events_url":"https://api.github.com/users/mrdavidlaing/events{/privacy}","received_events_url":"https://api.github.com/users/mrdavidlaing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T08:29:41Z","updated_at":"2015-04-04T08:34:58Z","closed_at":null,"body":"Given an app with 3 instances:\r\n```\r\n$ cf a\r\nGetting apps in org system / space test as admin...\r\nOK\r\n\r\nname        requested state   instances   memory   disk   urls   \r\ncf-env      started           3/3         128M     1G     cf-env.apps.54.183.203.97.xip.io   \r\n```\r\n\r\nMaking 3 different requests to the app (and confirming via the browser output that each requests goes to a different cf-instance)\r\n\r\nThe RTR logs forwarded to syslog always have `\"source_instance\":\"0\",`\r\n\r\n```\r\n{\"cf_app_id\":\"abfc9a95-d20c-44bb-9771-4aba27856843\",\"level\":\"info\",\"message_type\":\"OUT\",\"msg\":\"cf-env.apps.54.183.203.97.xip.io - [04/04/2015:08:24:34 +0000] \\\"GET / HTTP/1.1\\\" 200 4283 \\\"-\\\" \\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36\\\" 10.10.2.6:50837 x_forwarded_for:\\\"80.229.7.108, 10.10.2.6\\\" vcap_request_id:65583092-4d22-4de1-74e8-da86c9056be7 response_time:0.010811226 app_id:abfc9a95-d20c-44bb-9771-4aba27856843\\n\",\"source_instance\":\"0\",\"source_type\":\"RTR\",\"time\":\"2015-04-04T08:24:32Z\"}\r\n{\"cf_app_id\":\"abfc9a95-d20c-44bb-9771-4aba27856843\",\"level\":\"info\",\"message_type\":\"ERR\",\"msg\":\"80.229.7.108, 10.10.2.6 - - [04/Apr/2015 08:24:38] \\\"GET / HTTP/1.1\\\" 200 4344 0.0034\",\"source_instance\":\"0\",\"source_type\":\"App\",\"time\":\"2015-04-04T08:24:35Z\"}\r\n{\"cf_app_id\":\"abfc9a95-d20c-44bb-9771-4aba27856843\",\"level\":\"info\",\"message_type\":\"OUT\",\"msg\":\"cf-env.apps.54.183.203.97.xip.io - [04/04/2015:08:24:37 +0000] \\\"GET / HTTP/1.1\\\" 200 4344 \\\"-\\\" \\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36\\\" 10.10.2.6:50837 x_forwarded_for:\\\"80.229.7.108, 10.10.2.6\\\" vcap_request_id:b6b1938d-0677-4b41-76ec-79818acdfb61 response_time:0.018241253 app_id:abfc9a95-d20c-44bb-9771-4aba27856843\\n\",\"source_instance\":\"0\",\"source_type\":\"RTR\",\"time\":\"2015-04-04T08:24:35Z\"}\r\n{\"cf_app_id\":\"abfc9a95-d20c-44bb-9771-4aba27856843\",\"level\":\"info\",\"message_type\":\"ERR\",\"msg\":\"80.229.7.108, 10.10.2.6 - - [04/Apr/2015 08:24:40] \\\"GET / HTTP/1.1\\\" 200 4344 0.0106\",\"source_instance\":\"1\",\"source_type\":\"App\",\"time\":\"2015-04-04T08:24:37Z\"}\r\n{\"cf_app_id\":\"abfc9a95-d20c-44bb-9771-4aba27856843\",\"level\":\"info\",\"message_type\":\"OUT\",\"msg\":\"cf-env.apps.54.183.203.97.xip.io - [04/04/2015:08:24:39 +0000] \\\"GET / HTTP/1.1\\\" 200 4344 \\\"-\\\" \\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36\\\" 10.10.2.6:50837 x_forwarded_for:\\\"80.229.7.108, 10.10.2.6\\\" vcap_request_id:d8623d66-2b91-4e64-4662-0b09c2621d49 response_time:0.017076269 app_id:abfc9a95-d20c-44bb-9771-4aba27856843\\n\",\"source_instance\":\"0\",\"source_type\":\"RTR\",\"time\":\"2015-04-04T08:24:37Z\"}\r\n```\r\n\r\nIt seems that the source_instance changes for other message_types - eg `\"source_type\":\"App\"`\r\n \r\nShouldn't we be seeing multiple source_instances for the RTR logs too?"},"comment":{"url":"https://api.github.com/repos/cloudfoundry-community/firehose-to-syslog/issues/comments/89528162","html_url":"https://github.com/cloudfoundry-community/firehose-to-syslog/issues/14#issuecomment-89528162","issue_url":"https://api.github.com/repos/cloudfoundry-community/firehose-to-syslog/issues/14","id":89528162,"user":{"login":"mrdavidlaing","id":227505,"avatar_url":"https://avatars.githubusercontent.com/u/227505?v=3","gravatar_id":"","url":"https://api.github.com/users/mrdavidlaing","html_url":"https://github.com/mrdavidlaing","followers_url":"https://api.github.com/users/mrdavidlaing/followers","following_url":"https://api.github.com/users/mrdavidlaing/following{/other_user}","gists_url":"https://api.github.com/users/mrdavidlaing/gists{/gist_id}","starred_url":"https://api.github.com/users/mrdavidlaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrdavidlaing/subscriptions","organizations_url":"https://api.github.com/users/mrdavidlaing/orgs","repos_url":"https://api.github.com/users/mrdavidlaing/repos","events_url":"https://api.github.com/users/mrdavidlaing/events{/privacy}","received_events_url":"https://api.github.com/users/mrdavidlaing/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T08:34:58Z","updated_at":"2015-04-04T08:34:58Z","body":"@simonjohansson - Is this a bug, or a quirk of `\"source_type\":\"RTR\"` LogMessages?"}}