{"action":"opened","issue":{"url":"https://api.github.com/repos/mcavage/node-bunyan-syslog/issues/34","labels_url":"https://api.github.com/repos/mcavage/node-bunyan-syslog/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/mcavage/node-bunyan-syslog/issues/34/comments","events_url":"https://api.github.com/repos/mcavage/node-bunyan-syslog/issues/34/events","html_url":"https://github.com/mcavage/node-bunyan-syslog/issues/34","id":117895490,"number":34,"title":"Not logging over network - 0.3.2 on node 4.2.2","user":{"login":"dougbtv","id":5472189,"avatar_url":"https://avatars.githubusercontent.com/u/5472189?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbtv","html_url":"https://github.com/dougbtv","followers_url":"https://api.github.com/users/dougbtv/followers","following_url":"https://api.github.com/users/dougbtv/following{/other_user}","gists_url":"https://api.github.com/users/dougbtv/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbtv/subscriptions","organizations_url":"https://api.github.com/users/dougbtv/orgs","repos_url":"https://api.github.com/users/dougbtv/repos","events_url":"https://api.github.com/users/dougbtv/events{/privacy}","received_events_url":"https://api.github.com/users/dougbtv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T19:59:26Z","updated_at":"2015-11-19T19:59:26Z","closed_at":null,"body":"I'm not seeing any logging happening with the example config, running node 4.2.2 on debian 8.2. specifically I'm actually running with a `node:4.2.2` [docker image](https://hub.docker.com/_/node/)\r\n\r\nHere's my version information...\r\n\r\n```bash\r\nroot@ogmapi:/ogmapi/foo# cat /etc/debian_version \r\n8.2\r\nroot@ogmapi:/ogmapi/foo# npm -v\r\n2.14.7\r\nroot@ogmapi:/ogmapi/foo# node -v\r\nv4.2.2\r\n```\r\n\r\nAnd here's what my npm installed items looks like...\r\n\r\n```\r\nroot@ogmapi:/ogmapi/foo# npm list\r\nnpm info it worked if it ends with ok\r\nnpm info using npm@2.14.7\r\nnpm info using node@v4.2.2\r\nfoo@ /ogmapi/foo\r\n├─┬ bunyan@1.5.1\r\n│ ├─┬ dtrace-provider@0.6.0\r\n│ │ └── nan@2.1.0\r\n│ ├─┬ mv@2.1.1\r\n│ │ ├─┬ mkdirp@0.5.1\r\n│ │ │ └── minimist@0.0.8\r\n│ │ ├── ncp@2.0.0\r\n│ │ └─┬ rimraf@2.4.3\r\n│ │   └─┬ glob@5.0.15\r\n│ │     ├─┬ inflight@1.0.4\r\n│ │     │ └── wrappy@1.0.1\r\n│ │     ├── inherits@2.0.1\r\n│ │     ├─┬ minimatch@3.0.0\r\n│ │     │ └─┬ brace-expansion@1.1.1\r\n│ │     │   ├── balanced-match@0.2.1\r\n│ │     │   └── concat-map@0.0.1\r\n│ │     ├─┬ once@1.3.2\r\n│ │     │ └── wrappy@1.0.1\r\n│ │     └── path-is-absolute@1.0.0\r\n│ └── safe-json-stringify@1.0.3\r\n└─┬ bunyan-syslog@0.3.1\r\n  ├── assert-plus@0.1.5\r\n  └── nan@2.1.0\r\n\r\nnpm info ok \r\nroot@ogmapi:/ogmapi/foo# cat package.json \r\n{\r\n  \"name\": \"foo\",\r\n  \"dependencies\": {\r\n    \"bunyan\": \"*\",\r\n    \"bunyan-syslog\": \"*\"\r\n  }\r\n}\r\n```\r\n\r\nAnd here's the file I run, test.js -- based on the example in the README.\r\n\r\n```javascript\r\nvar bunyan = require('bunyan');\r\nvar bsyslog = require('bunyan-syslog');\r\n\r\nvar log = bunyan.createLogger({\r\n    name: 'foo',\r\n    streams: [ {\r\n        level: 'debug',\r\n        type: 'raw',\r\n        stream: bsyslog.createBunyanStream({\r\n            type: 'sys',\r\n            facility: bsyslog.local0,\r\n            host: '192.168.11.237',\r\n            port: 514\r\n        })\r\n    }]\r\n});\r\n\r\nlog.debug({foo: 'bar'}, 'hello %s', 'world');\r\n```\r\n\r\nHere's me running it a couple times...\r\n\r\n```bash\r\nroot@ogmapi:/ogmapi/foo# node test.js \r\nnode: {\"name\":\"foo\",\"hostname\":\"ogmapi\",\"pid\":1560,\"level\":20,\"foo\":\"bar\",\"msg\":\"hello world\",\"time\":\"2015-11-19T19:54:49.124Z\",\"v\":0}\r\nroot@ogmapi:/ogmapi/foo# node test.js \r\nnode: {\"name\":\"foo\",\"hostname\":\"ogmapi\",\"pid\":1566,\"level\":20,\"foo\":\"bar\",\"msg\":\"hello world\",\"time\":\"2015-11-19T19:54:56.526Z\",\"v\":0}\r\n```\r\n\r\nBut, I don't capture anything with tcpdump...\r\n\r\n```\r\nroot@ogmapi:/ogmapi# tcpdump\r\ntcpdump: verbose output suppressed, use -v or -vv for full protocol decode\r\nlistening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes\r\n^C\r\n0 packets captured\r\n0 packets received by filter\r\n0 packets dropped by kernel\r\n```\r\n\r\nI tried downgrading the version of bunyan-syslog, but, had almost no luck going below `0.3.1`\r\n\r\n-----\r\n\r\nAs a control -- Here's an example where using the `logger` command does work:\r\n\r\n    root@ogmapi:/ogmapi# logger --server 192.168.11.237 \"foo bar quux\"\r\n\r\nAnd then captured...\r\n\r\n    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode\r\n    listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes\r\n    19:51:47.154664 IP ogmapi.47351 > 192.168.11.237.syslog: SYSLOG kernel.notice, length: 43\r\n"}}