{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluentd/issues/876","repository_url":"https://api.github.com/repos/fluent/fluentd","labels_url":"https://api.github.com/repos/fluent/fluentd/issues/876/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluentd/issues/876/comments","events_url":"https://api.github.com/repos/fluent/fluentd/issues/876/events","html_url":"https://github.com/fluent/fluentd/pull/876","id":144812613,"number":876,"title":"Add delimiter option to in_udp plugin","user":{"login":"pokehanai","id":1510461,"avatar_url":"https://avatars.githubusercontent.com/u/1510461?v=3","gravatar_id":"","url":"https://api.github.com/users/pokehanai","html_url":"https://github.com/pokehanai","followers_url":"https://api.github.com/users/pokehanai/followers","following_url":"https://api.github.com/users/pokehanai/following{/other_user}","gists_url":"https://api.github.com/users/pokehanai/gists{/gist_id}","starred_url":"https://api.github.com/users/pokehanai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokehanai/subscriptions","organizations_url":"https://api.github.com/users/pokehanai/orgs","repos_url":"https://api.github.com/users/pokehanai/repos","events_url":"https://api.github.com/users/pokehanai/events{/privacy}","received_events_url":"https://api.github.com/users/pokehanai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"repeatedly","id":16928,"avatar_url":"https://avatars.githubusercontent.com/u/16928?v=3","gravatar_id":"","url":"https://api.github.com/users/repeatedly","html_url":"https://github.com/repeatedly","followers_url":"https://api.github.com/users/repeatedly/followers","following_url":"https://api.github.com/users/repeatedly/following{/other_user}","gists_url":"https://api.github.com/users/repeatedly/gists{/gist_id}","starred_url":"https://api.github.com/users/repeatedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repeatedly/subscriptions","organizations_url":"https://api.github.com/users/repeatedly/orgs","repos_url":"https://api.github.com/users/repeatedly/repos","events_url":"https://api.github.com/users/repeatedly/events{/privacy}","received_events_url":"https://api.github.com/users/repeatedly/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-03-31T07:25:06Z","updated_at":"2016-04-06T12:56:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fluent/fluentd/pulls/876","html_url":"https://github.com/fluent/fluentd/pull/876","diff_url":"https://github.com/fluent/fluentd/pull/876.diff","patch_url":"https://github.com/fluent/fluentd/pull/876.patch"},"body":"According to the documentation http://docs.fluentd.org/articles/in_udp\r\n`in_udp` should have `deliimiter` option but it currently does not.\r\n\r\nI noticed it when my code sent multi log entries in a transmittion.\r\n\r\nI made this patch while I am not sure whether it is a documentation bug\r\nor not; hopefully it is not - to support bulk operation.\r\n\r\nFYI: Current `in_syslog` looks fine with multiline entries.\r\nMaybe its parser handles well."},"comment":{"url":"https://api.github.com/repos/fluent/fluentd/issues/comments/206357895","html_url":"https://github.com/fluent/fluentd/pull/876#issuecomment-206357895","issue_url":"https://api.github.com/repos/fluent/fluentd/issues/876","id":206357895,"user":{"login":"repeatedly","id":16928,"avatar_url":"https://avatars.githubusercontent.com/u/16928?v=3","gravatar_id":"","url":"https://api.github.com/users/repeatedly","html_url":"https://github.com/repeatedly","followers_url":"https://api.github.com/users/repeatedly/followers","following_url":"https://api.github.com/users/repeatedly/following{/other_user}","gists_url":"https://api.github.com/users/repeatedly/gists{/gist_id}","starred_url":"https://api.github.com/users/repeatedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repeatedly/subscriptions","organizations_url":"https://api.github.com/users/repeatedly/orgs","repos_url":"https://api.github.com/users/repeatedly/repos","events_url":"https://api.github.com/users/repeatedly/events{/privacy}","received_events_url":"https://api.github.com/users/repeatedly/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T12:56:03Z","updated_at":"2016-04-06T12:56:03Z","body":"> Then, replacing with String#slice in a loop would reduce some CPU and memory impact.\r\nWhat about that way?\r\n\r\nWhat does this sentence mean? Using `String#slice` instead of `String#split`?\r\n\r\n> Since sending from clients and receiving by the agent multiple udp messages consume more totaling CPU cycle, network bytes and time than comparison to a combined single message.\r\n\r\nRight, but we can't decrease the default performance because it breaks exisiting user environment."}}