Title: multiline_regex_before won't work when logfile ends with empty line · Issue #403 · python-beaver/python-beaver · GitHub
Open Graph Title: multiline_regex_before won't work when logfile ends with empty line · Issue #403 · python-beaver/python-beaver
X Title: multiline_regex_before won't work when logfile ends with empty line · Issue #403 · python-beaver/python-beaver
Description: Hello, I still got some troubles when i'm using the multiline_regex_before with empty_lines... I found out that if the last entry in your logfile is empty he will print all lines separately. my logfile: 2016/04/25 06:48:18 919733 +0200 -...
Open Graph Description: Hello, I still got some troubles when i'm using the multiline_regex_before with empty_lines... I found out that if the last entry in your logfile is empty he will print all lines separately. my log...
X Description: Hello, I still got some troubles when i'm using the multiline_regex_before with empty_lines... I found out that if the last entry in your logfile is empty he will print all lines separately. my...
Opengraph URL: https://github.com/python-beaver/python-beaver/issues/403
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"multiline_regex_before won't work when logfile ends with empty line","articleBody":"Hello,\n\nI still got some troubles when i'm using the multiline_regex_before with empty_lines...\nI found out that if the last entry in your logfile is empty he will print all lines separately.\n\nmy logfile:\n2016/04/25 06:48:18 919733 +0200 - cmp05 - 6747/0 - alba/proxy - 57397 - info - ETCD: etcdctl --peers=127.0.0.1:2379 set ovs/vpools/26ecee0c-a3ea-4d37-a245-3b0c0e18823b/proxies/890c3734-a8d6-47ec-ab59-b1d489c0b83c/config/abm [global]; cluster_id = \u003cid\u003e; cluster = ElLfeK1QfHheHtGO, ABSjdH4ybJRukOwD, wFWnl7M9oFjZMUKj; ; [wFWnl7M9oFjZMUKj]; client_port = \u003cport\u003e; ip = \u003cip\u003e; ; [ABSjdH4ybJRukOwD]; client_port = \u003cport\u003e; ip = \u003cip\u003e; ; [ElLfeK1QfHheHtGO]; client_port = \u003cport\u003e; ip = \u003cip\u003e; \n[global]\ncluster_id = \u003cid\u003e\ncluster = ElLfeK1QfHheHtGO, ABSjdH4ybJRukOwD, wFWnl7M9oFjZMUKj\n\n[wFWnl7M9oFjZMUKj]\nclient_port = \u003cport\u003e\nip = \u003cip\u003e\n\n[ABSjdH4ybJRukOwD]\nclient_port = \u003cport\u003e\nip = \u003cip\u003e\n\n[ElLfeK1QfHheHtGO]\nclient_port = \u003cport\u003e\nip = \u003cip\u003e\n\n2016/04/25 06:48:31 555754 +0200 - cmp05 - 6747/0 - alba/proxy - 57398 - info - update_osds\n\nmy beaver config\n[/var/log/upstart/_.log]\nmultiline_regex_before = ^[^\\d{4}/\\d{2}/\\d{1,2}]._\nignore_empty: 1\ntype: other\ntags: other\n\nYou could easily fix this if you add\nfor line in lines:\nif line == '':\n break\n....\n\nin your multiline_merge function [https://github.com/python-beaver/python-beaver/blob/master/beaver/utils.py#L199]\n\nCan you please fix this?\n","author":{"url":"https://github.com/jeroenmaelbrancke","@type":"Person","name":"jeroenmaelbrancke"},"datePublished":"2016-04-25T14:16:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/403/python-beaver/issues/403"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c10d47a3-8833-2161-3d15-60f9a5d07aea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A330:BAB60:2C1D5F1:39F5FA3:696B7817 |
| html-safe-nonce | 387cfdd92514e219fcf7b161f6f057d6b61c98279412168cdf783fae9c0c72ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzMwOkJBQjYwOjJDMUQ1RjE6MzlGNUZBMzo2OTZCNzgxNyIsInZpc2l0b3JfaWQiOiI4NzI3NDA3MDYwODcwNDYxNDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cc598315981c50ed3a13f2b12b7f74a4606be4a62e2b0cfa193d2b60eeef4cdc |
| hovercard-subject-tag | issue:150876591 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-beaver/python-beaver/403/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af5ff7acd5f10c022597bc2f3886de88e3e7c5536bcd1dd9db47fe4f47e3e431/python-beaver/python-beaver/issues/403 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af5ff7acd5f10c022597bc2f3886de88e3e7c5536bcd1dd9db47fe4f47e3e431/python-beaver/python-beaver/issues/403 |
| og:image:alt | Hello, I still got some troubles when i'm using the multiline_regex_before with empty_lines... I found out that if the last entry in your logfile is empty he will print all lines separately. my log... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeroenmaelbrancke |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-beaver/python-beaver git https://github.com/python-beaver/python-beaver.git |
| octolytics-dimension-user_id | 16486652 |
| octolytics-dimension-user_login | python-beaver |
| octolytics-dimension-repository_id | 5171841 |
| octolytics-dimension-repository_nwo | python-beaver/python-beaver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5171841 |
| octolytics-dimension-repository_network_root_nwo | python-beaver/python-beaver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width