{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/paas-cf/issues/663","repository_url":"https://api.github.com/repos/alphagov/paas-cf","labels_url":"https://api.github.com/repos/alphagov/paas-cf/issues/663/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/paas-cf/issues/663/comments","events_url":"https://api.github.com/repos/alphagov/paas-cf/issues/663/events","html_url":"https://github.com/alphagov/paas-cf/pull/663","id":195046864,"number":663,"title":"[#127564379] Fix lrps mapping","user":{"login":"saliceti","id":8416694,"avatar_url":"https://avatars.githubusercontent.com/u/8416694?v=3","gravatar_id":"","url":"https://api.github.com/users/saliceti","html_url":"https://github.com/saliceti","followers_url":"https://api.github.com/users/saliceti/followers","following_url":"https://api.github.com/users/saliceti/following{/other_user}","gists_url":"https://api.github.com/users/saliceti/gists{/gist_id}","starred_url":"https://api.github.com/users/saliceti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saliceti/subscriptions","organizations_url":"https://api.github.com/users/saliceti/orgs","repos_url":"https://api.github.com/users/saliceti/repos","events_url":"https://api.github.com/users/saliceti/events{/privacy}","received_events_url":"https://api.github.com/users/saliceti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"assignees":[{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-12T18:17:37Z","updated_at":"2016-12-13T10:57:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/paas-cf/pulls/663","html_url":"https://github.com/alphagov/paas-cf/pull/663","diff_url":"https://github.com/alphagov/paas-cf/pull/663.diff","patch_url":"https://github.com/alphagov/paas-cf/pull/663.patch"},"body":"## What\r\n\r\nStory: [Junk logstash mappings being created & breaking Kibana](https://www.pivotaltracker.com/story/show/131722035)\r\n\r\nWe have an issue with a log message from the auctioneer. It contains:\r\n`\"data\":{\"lrps\":{\"df03138b-924d-417e-9743-abf81e577a70-7276869e-d03c-4ffd-9f83-18c366a390c3\":[1]},...,\"request\":\"/v1/lrps\",...}`\r\nElasticsearch assumes\r\n`auctioneer.data.lrps.df03138b-924d-417e-9743-abf81e577a70-7276869e-d03c-4ffd-9f83-18c366a390c3`\r\nis the name of a field, because it contains an array of integers. So it creates a mapping for each new LRP GUID.\r\n    \r\nThis PR adds a logstash filter that changes the hash to an array containing the GUID strings.\r\n    \r\nThis depends on the code from PR\r\nhttps://github.com/alphagov/paas-logsearch-for-cloudfoundry/pull/1\r\n\r\n## How to review\r\n* On an existing environment, search for `auctioneer.request.lrp-auction-handler.create.submitted` in logsearch. You should see fields in the form of `auctioneer.data.lrps.<LRP GUID>`. Run smoke tests if you don't see any\r\n* Deploy with this branch\r\n* Test again, it shouldn't create these fields. Check the data is still there and you can still see the LRP GUIDs.\r\n\r\n## How to merge\r\n- When ready, merge PR https://github.com/alphagov/paas-logsearch-for-cloudfoundry/pull/1\r\n- Create and push tag `20161212-gds` on paas-logsearch-for-cloudfoundry master\r\n- Remove commit 15d3f43 in this branch\r\n- Merge this PR\r\n\r\n## Who can review\r\nNot @combor or me\r\n"},"comment":{"url":"https://api.github.com/repos/alphagov/paas-cf/issues/comments/266708760","html_url":"https://github.com/alphagov/paas-cf/pull/663#issuecomment-266708760","issue_url":"https://api.github.com/repos/alphagov/paas-cf/issues/663","id":266708760,"user":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T10:57:19Z","updated_at":"2016-12-13T10:57:19Z","body":"@saliceti @combor could you add the paas-logsearch-for-cloudfoundry project to the https://github.com/alphagov/paas-release-ci project and start using that?\r\n\r\nthx"}}
{"actor":{"display_login":"keymon"}}