{"action":"created","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp/issues/6","repository_url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp/issues/6/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp/issues/6/events","html_url":"https://github.com/logstash-plugins/logstash-input-snmp/issues/6","id":326871643,"node_id":"MDU6SXNzdWUzMjY4NzE2NDM=","number":6,"title":"Add metadata to fields","user":{"login":"ciscojer","id":29899961,"node_id":"MDQ6VXNlcjI5ODk5OTYx","avatar_url":"https://avatars0.githubusercontent.com/u/29899961?v=4","gravatar_id":"","url":"https://api.github.com/users/ciscojer","html_url":"https://github.com/ciscojer","followers_url":"https://api.github.com/users/ciscojer/followers","following_url":"https://api.github.com/users/ciscojer/following{/other_user}","gists_url":"https://api.github.com/users/ciscojer/gists{/gist_id}","starred_url":"https://api.github.com/users/ciscojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciscojer/subscriptions","organizations_url":"https://api.github.com/users/ciscojer/orgs","repos_url":"https://api.github.com/users/ciscojer/repos","events_url":"https://api.github.com/users/ciscojer/events{/privacy}","received_events_url":"https://api.github.com/users/ciscojer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"colinsurprenant","id":2010,"node_id":"MDQ6VXNlcjIwMTA=","avatar_url":"https://avatars1.githubusercontent.com/u/2010?v=4","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"assignees":[{"login":"colinsurprenant","id":2010,"node_id":"MDQ6VXNlcjIwMTA=","avatar_url":"https://avatars1.githubusercontent.com/u/2010?v=4","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-05-28T01:46:42Z","updated_at":"2018-05-30T20:14:42Z","closed_at":null,"author_association":"NONE","body":"Hi I'm using this plugin like to poll a single OID for the temperature value from 2 switches. When I have multiple \"hosts\" defined, there is no way to tell which switch the value comes from. \r\n\r\nIs it possible to add metadata to the input to include the value of \"host\" in the event? \r\n\r\nThx, Jeremy\r\n\r\nLogstash input:\r\ninput {\r\n  snmp {\r\n    walk => [\"1.3.6.1.4.1.9.9.13.1.3.1.3\"]\r\n    #mib_paths => [\"path/to/RFC1213-MIB.dic\"]\r\n        hosts => [{host => \"udp:10.10.10.230/161\" community => \"public\"},{host => \"udp:10.10.10.44/161\" community => \"public\"}]\r\n    type => \"snmp\"\r\n  }\r\n}\r\n\r\n\r\nResults from first device showing OID value of 62\r\n\r\n\r\n{\r\n  \"_index\": \"logstash-2018.05.28\",\r\n  \"_type\": \"doc\",\r\n  \"_id\": \"VQdkpGMBNA17SEvAjCBG\",\r\n  \"_version\": 1,\r\n  \"_score\": null,\r\n  \"_source\": {\r\n    \"1.3.6.1.4.1.9.9.13.1.3.1.3.1004\": 62,\r\n    \"@timestamp\": \"2018-05-28T01:37:22.904Z\",\r\n    \"@version\": \"1\",\r\n    \"type\": \"snmp\"\r\n  },\r\n  \"fields\": {\r\n    \"@timestamp\": [\r\n      \"2018-05-28T01:37:22.904Z\"\r\n    ]\r\n  },\r\n  \"highlight\": {\r\n    \"type\": [\r\n      \"@kibana-highlighted-field@snmp@/kibana-highlighted-field@\"\r\n    ]\r\n  },\r\n  \"sort\": [\r\n    1527471442904\r\n  ]\r\n}\r\n\r\n\r\nResults from second device showing OID value of 60\r\n\r\n{\r\n  \"_index\": \"logstash-2018.05.28\",\r\n  \"_type\": \"doc\",\r\n  \"_id\": \"VAdkpGMBNA17SEvAjCA7\",\r\n  \"_version\": 1,\r\n  \"_score\": null,\r\n  \"_source\": {\r\n    \"1.3.6.1.4.1.9.9.13.1.3.1.3.1004\": 60,\r\n    \"@timestamp\": \"2018-05-28T01:37:22.901Z\",\r\n    \"@version\": \"1\",\r\n    \"type\": \"snmp\"\r\n  },\r\n  \"fields\": {\r\n    \"@timestamp\": [\r\n      \"2018-05-28T01:37:22.901Z\"\r\n    ]\r\n  },\r\n  \"highlight\": {\r\n    \"type\": [\r\n      \"@kibana-highlighted-field@snmp@/kibana-highlighted-field@\"\r\n    ]\r\n  },\r\n  \"sort\": [\r\n    1527471442901\r\n  ]\r\n}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp/issues/comments/393302814","html_url":"https://github.com/logstash-plugins/logstash-input-snmp/issues/6#issuecomment-393302814","issue_url":"https://api.github.com/repos/logstash-plugins/logstash-input-snmp/issues/6","id":393302814,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzMwMjgxNA==","user":{"login":"colinsurprenant","id":2010,"node_id":"MDQ6VXNlcjIwMTA=","avatar_url":"https://avatars1.githubusercontent.com/u/2010?v=4","gravatar_id":"","url":"https://api.github.com/users/colinsurprenant","html_url":"https://github.com/colinsurprenant","followers_url":"https://api.github.com/users/colinsurprenant/followers","following_url":"https://api.github.com/users/colinsurprenant/following{/other_user}","gists_url":"https://api.github.com/users/colinsurprenant/gists{/gist_id}","starred_url":"https://api.github.com/users/colinsurprenant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinsurprenant/subscriptions","organizations_url":"https://api.github.com/users/colinsurprenant/orgs","repos_url":"https://api.github.com/users/colinsurprenant/repos","events_url":"https://api.github.com/users/colinsurprenant/events{/privacy}","received_events_url":"https://api.github.com/users/colinsurprenant/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T20:14:42Z","updated_at":"2018-05-30T20:14:42Z","author_association":"CONTRIBUTOR","body":"@ciscojer merged #7. you can update plugin to 0.1.0.beta2 and let me know if that works for you! "}}
{"actor":{"display_login":"colinsurprenant"}}