{"action":"created","issue":{"url":"https://api.github.com/repos/sipcapture/homer-api/issues/53","labels_url":"https://api.github.com/repos/sipcapture/homer-api/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/sipcapture/homer-api/issues/53/comments","events_url":"https://api.github.com/repos/sipcapture/homer-api/issues/53/events","html_url":"https://github.com/sipcapture/homer-api/pull/53","id":111429459,"number":53,"title":"Alias include a capt id to distinguish same ip:port on different tracers","user":{"login":"giavac","id":3305097,"avatar_url":"https://avatars.githubusercontent.com/u/3305097?v=3","gravatar_id":"","url":"https://api.github.com/users/giavac","html_url":"https://github.com/giavac","followers_url":"https://api.github.com/users/giavac/followers","following_url":"https://api.github.com/users/giavac/following{/other_user}","gists_url":"https://api.github.com/users/giavac/gists{/gist_id}","starred_url":"https://api.github.com/users/giavac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giavac/subscriptions","organizations_url":"https://api.github.com/users/giavac/orgs","repos_url":"https://api.github.com/users/giavac/repos","events_url":"https://api.github.com/users/giavac/events{/privacy}","received_events_url":"https://api.github.com/users/giavac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T15:54:46Z","updated_at":"2015-10-20T08:37:53Z","closed_at":"2015-10-14T20:15:10Z","pull_request":{"url":"https://api.github.com/repos/sipcapture/homer-api/pulls/53","html_url":"https://github.com/sipcapture/homer-api/pull/53","diff_url":"https://github.com/sipcapture/homer-api/pull/53.diff","patch_url":"https://github.com/sipcapture/homer-api/pull/53.patch"},"body":"Homer was receiving traces from hosts that use in some conditions 127.0.0.1 i/f, so the combination IP address and port wasn't sufficient to uniquely identify them with aliases.\r\nHEPv2 adds the opportunity to provide a capture ID, and the messages are then stored with a 'node' field like \"homer01:13\", where 'homer01' is the homer node name and '13' is the tracer's capture ID.\r\nBy adding the capture ID to the alias table and keys I was able to make the desired distinction.\r\nIf this PR will be accepted, I think I can also modify homer-ui's widget for Admin Alias to include the capture id field."},"comment":{"url":"https://api.github.com/repos/sipcapture/homer-api/issues/comments/149478108","html_url":"https://github.com/sipcapture/homer-api/pull/53#issuecomment-149478108","issue_url":"https://api.github.com/repos/sipcapture/homer-api/issues/53","id":149478108,"user":{"login":"michaelarnauts","id":1193779,"avatar_url":"https://avatars.githubusercontent.com/u/1193779?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelarnauts","html_url":"https://github.com/michaelarnauts","followers_url":"https://api.github.com/users/michaelarnauts/followers","following_url":"https://api.github.com/users/michaelarnauts/following{/other_user}","gists_url":"https://api.github.com/users/michaelarnauts/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelarnauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelarnauts/subscriptions","organizations_url":"https://api.github.com/users/michaelarnauts/orgs","repos_url":"https://api.github.com/users/michaelarnauts/repos","events_url":"https://api.github.com/users/michaelarnauts/events{/privacy}","received_events_url":"https://api.github.com/users/michaelarnauts/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T08:37:52Z","updated_at":"2015-10-20T08:37:52Z","body":"The downside of this is that you need to define aliasses for all capture nodes. Maybe some special \"*\" alias can be defined that would match for all capture nodes?\r\n\r\nI have multiple capture nodes that receive traffic from a mirrored switchport. There is one UI node that fetches the data from those capture nodes. In this setup, I need to define all my aliasses (I have about 30) for every capture node, and in the case a new node is added, I have to copy them again for this new node.\r\n\r\nA special \"*\"-node would fix this. This would require a small change in `applyAliasses()`. If this sounds good, I'm willing to make this change."}}