{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/43695","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/43695/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/43695/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/43695/events","html_url":"https://github.com/saltstack/salt/issues/43695","id":259806627,"number":43695,"title":"Customising the event tag for specific salt jobs.","user":{"login":"rajvidhimar","id":7702514,"avatar_url":"https://avatars2.githubusercontent.com/u/7702514?v=4","gravatar_id":"","url":"https://api.github.com/users/rajvidhimar","html_url":"https://github.com/rajvidhimar","followers_url":"https://api.github.com/users/rajvidhimar/followers","following_url":"https://api.github.com/users/rajvidhimar/following{/other_user}","gists_url":"https://api.github.com/users/rajvidhimar/gists{/gist_id}","starred_url":"https://api.github.com/users/rajvidhimar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajvidhimar/subscriptions","organizations_url":"https://api.github.com/users/rajvidhimar/orgs","repos_url":"https://api.github.com/users/rajvidhimar/repos","events_url":"https://api.github.com/users/rajvidhimar/events{/privacy}","received_events_url":"https://api.github.com/users/rajvidhimar/received_events","type":"User","site_admin":false},"labels":[{"id":48088732,"url":"https://api.github.com/repos/saltstack/salt/labels/Question","name":"Question","color":"942192","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestone/13","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars0.githubusercontent.com/u/507599?v=4","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":3428,"closed_issues":5312,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2017-09-30T23:06:18Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-09-22T12:58:04Z","updated_at":"2017-09-30T23:06:18Z","closed_at":"2017-09-30T23:06:16Z","author_association":"CONTRIBUTOR","body":"### Description of Question\r\nMy goal is to extract all the events (from the master) pertaining to junos module.\r\nCurrently, all the jobs events have a specific tag (\"salt/job/jobid/ret/proxyid\")\r\nExample event:\r\n```\r\nsalt/job/20170922180137303079/ret/dev\t{\r\n    \"_stamp\": \"2017-09-22T12:31:37.388820\",\r\n    \"cmd\": \"_return\",\r\n    \"fun\": \"junos.facts\",\r\n    \"fun_args\": [],\r\n    \"id\": \"dev\",\r\n    \"jid\": \"20170922180137303079\",\r\n    \"retcode\": 0,\r\n    \"return\": {\r\n        \"facts\": {\r\n            \"2RE\": true,\r\n            \"HOME\": \"/var/home/regress\",\r\n            \"RE0\": {\r\n                \"last_reboot_reason\": \"Router rebooted after a normal shutdown.\",\r\n                \"mastership_state\": \"master\",\r\n                \"model\": \"RE-VMX\",\r\n                \"status\": \"OK\",\r\n                \"up_time\": \"15 days, 7 hours, 4 minutes, 16 seconds\"\r\n            }, \r\n           << omitted for brevity >>\r\n```\r\nIs there a way to customise the event tag for the events pertaning to jobs executing junos module functions? This will make extraction of events much easier.\r\nSo instead of previous event example, I want an event like:\r\n```\r\n    junos/job/ret/dev\t{\r\n    \"_stamp\": \"2017-09-22T12:31:37.388820\",\r\n    \"cmd\": \"_return\",\r\n    \"fun\": \"junos.facts\",\r\n    \"fun_args\": [],\r\n    \"id\": \"dev\",\r\n    \"jid\": \"20170922180137303079\",\r\n    \"retcode\": 0,\r\n    \"return\": {\r\n        \"facts\": {\r\n            \"2RE\": true,\r\n            \"HOME\": \"/var/home/regress\",\r\n            \"RE0\": {\r\n                \"last_reboot_reason\": \"Router rebooted after a normal shutdown.\",\r\n                \"mastership_state\": \"master\",\r\n                \"model\": \"RE-VMX\",\r\n                \"status\": \"OK\",\r\n                \"up_time\": \"15 days, 7 hours, 4 minutes, 16 seconds\"\r\n            },\r\n            << omitted for brevity >>\r\n```\r\nNotice the difference in event tag. (The first line of both examples)\r\n\r\n### Setup\r\nNo additional setup required apart from proxy setup.\r\n\r\n### Steps to Reproduce Issue\r\n1) Start the junos proxy\r\n2) Execute any junos function. Like-\r\n     **salt 'dev' junos.facts**\r\n3) On the master observe the event bus using the command:\r\n     **salt-run state.event pretty=True**\r\n\r\n### Versions Report\r\nSalt Version:\r\n           Salt: 2016.11.0-1637-gaae03dd\r\n\r\nDependency Versions:\r\n           cffi: 1.10.0\r\n       cherrypy: Not Installed\r\n       dateutil: Not Installed\r\n      docker-py: Not Installed\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.9.6\r\n        libgit2: Not Installed\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.8\r\n   mysql-python: Not Installed\r\n      pycparser: 2.17\r\n       pycrypto: 2.6.1\r\n   pycryptodome: Not Installed\r\n         pygit2: Not Installed\r\n         Python: 2.7.10 (default, Oct 23 2015, 19:19:21)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.12\r\n          PyZMQ: 16.0.2\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.4.3\r\n            ZMQ: 4.1.6\r\n\r\nSystem Versions:\r\n           dist:\r\n         locale: UTF-8\r\n        machine: x86_64\r\n        release: 15.6.0\r\n         system: Darwin\r\n        version: 10.11.6 x86_64"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/333341725","html_url":"https://github.com/saltstack/salt/issues/43695#issuecomment-333341725","issue_url":"https://api.github.com/repos/saltstack/salt/issues/43695","id":333341725,"user":{"login":"cachedout","id":111616,"avatar_url":"https://avatars3.githubusercontent.com/u/111616?v=4","gravatar_id":"","url":"https://api.github.com/users/cachedout","html_url":"https://github.com/cachedout","followers_url":"https://api.github.com/users/cachedout/followers","following_url":"https://api.github.com/users/cachedout/following{/other_user}","gists_url":"https://api.github.com/users/cachedout/gists{/gist_id}","starred_url":"https://api.github.com/users/cachedout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachedout/subscriptions","organizations_url":"https://api.github.com/users/cachedout/orgs","repos_url":"https://api.github.com/users/cachedout/repos","events_url":"https://api.github.com/users/cachedout/events{/privacy}","received_events_url":"https://api.github.com/users/cachedout/received_events","type":"User","site_admin":false},"created_at":"2017-09-30T23:06:16Z","updated_at":"2017-09-30T23:06:16Z","author_association":"CONTRIBUTOR","body":"There is no way to do this at present, I'm afraid."}}
{"actor":{"display_login":"cachedout"}}