{"action":"created","issue":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1521","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1521/labels{/name}","comments_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1521/comments","events_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1521/events","html_url":"https://github.com/Graylog2/graylog2-server/pull/1521","id":114060502,"number":1521,"title":"Support loading and applying content packs on startup","user":{"login":"joschi","id":43951,"avatar_url":"https://avatars.githubusercontent.com/u/43951?v=3","gravatar_id":"","url":"https://api.github.com/users/joschi","html_url":"https://github.com/joschi","followers_url":"https://api.github.com/users/joschi/followers","following_url":"https://api.github.com/users/joschi/following{/other_user}","gists_url":"https://api.github.com/users/joschi/gists{/gist_id}","starred_url":"https://api.github.com/users/joschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschi/subscriptions","organizations_url":"https://api.github.com/users/joschi/orgs","repos_url":"https://api.github.com/users/joschi/repos","events_url":"https://api.github.com/users/joschi/events{/privacy}","received_events_url":"https://api.github.com/users/joschi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/feature","name":"feature","color":"006b75"},{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/ready-for-review","name":"ready-for-review","color":"e11d21"},{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/setup","name":"setup","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/milestones/44","html_url":"https://github.com/Graylog2/graylog2-server/milestones/1.3.0","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/milestones/44/labels","id":1329257,"number":44,"title":"1.3.0","description":"","creator":{"login":"joschi","id":43951,"avatar_url":"https://avatars.githubusercontent.com/u/43951?v=3","gravatar_id":"","url":"https://api.github.com/users/joschi","html_url":"https://github.com/joschi","followers_url":"https://api.github.com/users/joschi/followers","following_url":"https://api.github.com/users/joschi/following{/other_user}","gists_url":"https://api.github.com/users/joschi/gists{/gist_id}","starred_url":"https://api.github.com/users/joschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joschi/subscriptions","organizations_url":"https://api.github.com/users/joschi/orgs","repos_url":"https://api.github.com/users/joschi/repos","events_url":"https://api.github.com/users/joschi/events{/privacy}","received_events_url":"https://api.github.com/users/joschi/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":5,"state":"open","created_at":"2015-09-29T14:57:56Z","updated_at":"2015-10-29T14:23:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-29T14:23:27Z","updated_at":"2015-10-29T15:15:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/pulls/1521","html_url":"https://github.com/Graylog2/graylog2-server/pull/1521","diff_url":"https://github.com/Graylog2/graylog2-server/pull/1521.diff","patch_url":"https://github.com/Graylog2/graylog2-server/pull/1521.patch"},"body":"This PR extends the original `ContentPackLoaderPeriodical` to be able to load and apply content packs from a configurable directory on startup.\r\n\r\nThe content pack loader scans `content_packs_dir` (default: `data/contentpacks`) for JSON files (`*.json`) and loads those into Graylog (existing content packs with the same category and name will not be overwritten). After that, all content packs from files listed in the `content_packs_auto_load` configuration setting (comma-separated list of file names) will be applied, i. e. the described entities (inputs, dashboards, streams, outputs) will be created in Graylog.\r\n\r\nThe whole mechanism can be enabled/disabled using the `content_packs_loader_enabled` configuration setting.\r\n\r\nAs a proof of concept (and to solve refs #1495) it includes a content pack which contains a core set of grok patterns (taken from https://github.com/logstash-plugins/logstash-patterns-core/tree/master/patterns/grok-patterns)."},"comment":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/comments/152211018","html_url":"https://github.com/Graylog2/graylog2-server/pull/1521#issuecomment-152211018","issue_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1521","id":152211018,"user":{"login":"bernd","id":461,"avatar_url":"https://avatars.githubusercontent.com/u/461?v=3","gravatar_id":"","url":"https://api.github.com/users/bernd","html_url":"https://github.com/bernd","followers_url":"https://api.github.com/users/bernd/followers","following_url":"https://api.github.com/users/bernd/following{/other_user}","gists_url":"https://api.github.com/users/bernd/gists{/gist_id}","starred_url":"https://api.github.com/users/bernd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernd/subscriptions","organizations_url":"https://api.github.com/users/bernd/orgs","repos_url":"https://api.github.com/users/bernd/repos","events_url":"https://api.github.com/users/bernd/events{/privacy}","received_events_url":"https://api.github.com/users/bernd/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T15:15:54Z","updated_at":"2015-10-29T15:15:54Z","body":"The OS packages and the appliances need to incorporate the new config values and directories."}}