{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/5876","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/5876/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/5876/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/5876/events","html_url":"https://github.com/elastic/logstash/pull/5876","id":175675612,"number":5876,"title":"update path.log to path.logs directory, and respect it in log4j2","user":{"login":"talevy","id":388837,"avatar_url":"https://avatars.githubusercontent.com/u/388837?v=3","gravatar_id":"","url":"https://api.github.com/users/talevy","html_url":"https://github.com/talevy","followers_url":"https://api.github.com/users/talevy/followers","following_url":"https://api.github.com/users/talevy/following{/other_user}","gists_url":"https://api.github.com/users/talevy/gists{/gist_id}","starred_url":"https://api.github.com/users/talevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talevy/subscriptions","organizations_url":"https://api.github.com/users/talevy/orgs","repos_url":"https://api.github.com/users/talevy/repos","events_url":"https://api.github.com/users/talevy/events{/privacy}","received_events_url":"https://api.github.com/users/talevy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/logstash/labels/logging%20improvements","name":"logging improvements","color":"bfd4f2"},{"url":"https://api.github.com/repos/elastic/logstash/labels/v5.0.0-beta1","name":"v5.0.0-beta1","color":"ededed"},{"url":"https://api.github.com/repos/elastic/logstash/labels/work%20in%20progress","name":"work in progress","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-08T06:32:51Z","updated_at":"2016-09-08T20:31:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/elastic/logstash/pulls/5876","html_url":"https://github.com/elastic/logstash/pull/5876","diff_url":"https://github.com/elastic/logstash/pull/5876.diff","patch_url":"https://github.com/elastic/logstash/pull/5876.patch"},"body":"With this PR, logs are emitted to both stdout and a rolling file called `logstash.log` in the `path.logs` directory"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/245730545","html_url":"https://github.com/elastic/logstash/pull/5876#issuecomment-245730545","issue_url":"https://api.github.com/repos/elastic/logstash/issues/5876","id":245730545,"user":{"login":"suyograo","id":1595958,"avatar_url":"https://avatars.githubusercontent.com/u/1595958?v=3","gravatar_id":"","url":"https://api.github.com/users/suyograo","html_url":"https://github.com/suyograo","followers_url":"https://api.github.com/users/suyograo/followers","following_url":"https://api.github.com/users/suyograo/following{/other_user}","gists_url":"https://api.github.com/users/suyograo/gists{/gist_id}","starred_url":"https://api.github.com/users/suyograo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suyograo/subscriptions","organizations_url":"https://api.github.com/users/suyograo/orgs","repos_url":"https://api.github.com/users/suyograo/repos","events_url":"https://api.github.com/users/suyograo/events{/privacy}","received_events_url":"https://api.github.com/users/suyograo/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T20:31:25Z","updated_at":"2016-09-08T20:31:25Z","body":"Works as expected. Started LS with default settings and both console and `LS_HOME/logs/logstash.log` has internal logs\r\n\r\n```\r\nsuyog@machine:~/ws/elastic/logstash/build/logstash-5.0.0-alpha6-SNAPSHOT (pr/5876)$ bin/logstash -e 'input {stdin {}} output { file { path => \"abc.txt\" } }' --log.level debug\r\n[2016-09-08T13:24:34,802][INFO ][logstash.runner          ] -------- Logstash Settings (* means modified) ---------\r\n[2016-09-08T13:24:34,805][INFO ][logstash.runner          ] node.name: \"Suyogs-MBP-2\"\r\n[2016-09-08T13:24:34,805][INFO ][logstash.runner          ] path.data: \"/Users/suyog/ws/elastic/logstash/build/logstash-5.0.0-alpha6-SNAPSHOT/data\"\r\n[2016-09-08T13:24:34,805][INFO ][logstash.runner          ] *config.string: \"input {stdin {}} output { file { path => \\\"abc.txt\\\" } }\"\r\n```\r\n\r\n```\r\nsuyog@machine:~/ws/elastic/logstash/build/logstash-5.0.0-alpha6-SNAPSHOT (pr/5876)$ ls -lrt logs/logstash.log\r\n-rw-r--r--  1 suyog  staff  11079 Sep  8 13:24 logs/logstash.log\r\n```\r\n\r\nI then changed `path.logs` in `logstash.yml` to point to `/tmp/ls_logs` and the logs moved there as expected.\r\n\r\n```\r\nsuyog@machine:~/ws/elastic/logstash/build/logstash-5.0.0-alpha6-SNAPSHOT (pr/5876)$ ls -lrt /tmp/ls_logs/logstash.log\r\n-rw-r--r--  1 suyog  wheel  10136 Sep  8 13:28 /tmp/ls_logs/logstash.log\r\n```\r\n\r\nWorks like a charm!"}}
{"actor":{"display_login":"suyograo"}}