{"action":"created","issue":{"url":"https://api.github.com/repos/riboseinc/kaohi/issues/7","repository_url":"https://api.github.com/repos/riboseinc/kaohi","labels_url":"https://api.github.com/repos/riboseinc/kaohi/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/riboseinc/kaohi/issues/7/comments","events_url":"https://api.github.com/repos/riboseinc/kaohi/issues/7/events","html_url":"https://github.com/riboseinc/kaohi/issues/7","id":304087527,"number":7,"title":"Create configuration models","user":{"login":"ronaldtse","id":11865,"avatar_url":"https://avatars1.githubusercontent.com/u/11865?v=4","gravatar_id":"","url":"https://api.github.com/users/ronaldtse","html_url":"https://github.com/ronaldtse","followers_url":"https://api.github.com/users/ronaldtse/followers","following_url":"https://api.github.com/users/ronaldtse/following{/other_user}","gists_url":"https://api.github.com/users/ronaldtse/gists{/gist_id}","starred_url":"https://api.github.com/users/ronaldtse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronaldtse/subscriptions","organizations_url":"https://api.github.com/users/ronaldtse/orgs","repos_url":"https://api.github.com/users/ronaldtse/repos","events_url":"https://api.github.com/users/ronaldtse/events{/privacy}","received_events_url":"https://api.github.com/users/ronaldtse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-10T17:22:11Z","updated_at":"2018-03-20T14:40:12Z","closed_at":null,"author_association":"NONE","body":"Based on https://github.com/riboseinc/event-configuration-models.\r\n\r\nConfigurable:\r\n* path to watch logs\r\n* rate limiting of upload\r\n* destination: hostname to send logs to (will be an https endpoint), authentication\r\n* if turn on rsyslog port to accept logs, port number, protocol (UDP/TCP)\r\n* send heartbeats to show it is alive to server\r\n* more? thoughts?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/riboseinc/kaohi/issues/comments/374622145","html_url":"https://github.com/riboseinc/kaohi/issues/7#issuecomment-374622145","issue_url":"https://api.github.com/repos/riboseinc/kaohi/issues/7","id":374622145,"user":{"login":"erikbor","id":25045442,"avatar_url":"https://avatars0.githubusercontent.com/u/25045442?v=4","gravatar_id":"","url":"https://api.github.com/users/erikbor","html_url":"https://github.com/erikbor","followers_url":"https://api.github.com/users/erikbor/followers","following_url":"https://api.github.com/users/erikbor/following{/other_user}","gists_url":"https://api.github.com/users/erikbor/gists{/gist_id}","starred_url":"https://api.github.com/users/erikbor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikbor/subscriptions","organizations_url":"https://api.github.com/users/erikbor/orgs","repos_url":"https://api.github.com/users/erikbor/repos","events_url":"https://api.github.com/users/erikbor/events{/privacy}","received_events_url":"https://api.github.com/users/erikbor/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T14:40:12Z","updated_at":"2018-03-20T14:40:12Z","author_association":"NONE","body":"Hi @jjr840430,\r\n\r\nPlease extend the existing json configuration:\r\n\r\n```json\r\n{\r\n\t\"log_dir\": \"/var/log/kaohi\",\r\n\t\"log_level\": \"DEBUG\",\r\n\r\n\t\"configs\": [\r\n\t\t{\r\n\t\t\t\"name\": \"test1\",\r\n\t\t\t\"type\": \"tail\",\r\n\t\t\t\"file_paths\": [\r\n\t\t\t\t\"/var/log/syslog\",\r\n\t\t\t\t\"/var/log/faillog\"\r\n\t\t\t]\r\n\t\t},\r\n\r\n\t\t{\r\n\t\t\t\"name\": \"test2\",\r\n\t\t\t\"type\": \"command\",\r\n\t\t\t\"cmds\": [\r\n\t\t\t\t\"/bin/ls\",\r\n\t\t\t\t\"ifconfig\"\r\n\t\t\t]\r\n\t\t}\r\n\t]\r\n}\r\n```\r\n\r\nwith the following:\r\n\r\n* rename `configs` to `config_paths`\r\n* extract `command` type from `configs` and create a new higher level called `commands` (that way we don't have to specify the `type`\r\n* include a UID to run `commands` as so we can run those commands unprivileged (similar to `rvd`)\r\n* introduce a `rsyslog` level with the following parameters:\r\n** IP protocol (ipv4, ipv6)\r\n** protocol (UDP, TCP or socket)\r\n** socket path\r\n** port\r\n** listening IP (the \"interface\" Kaohi is bound to)\r\n"}}
{"actor":{"display_login":"erikbor"}}