Title: GitHub · Where software is built
Open Graph Title: python-beaver/python-beaver
X Title: python-beaver/python-beaver
Description: Needs Maintainer: python daemon that munches on logs and sends their contents to logstash - python-beaver/python-beaver
Open Graph Description: Needs Maintainer: python daemon that munches on logs and sends their contents to logstash - python-beaver/python-beaver
X Description: Needs Maintainer: python daemon that munches on logs and sends their contents to logstash - python-beaver/python-beaver
Opengraph URL: https://github.com/python-beaver/python-beaver
X: @github
Domain: patch-diff.githubusercontent.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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:a7602745-effa-43d2-2385-af7fcc6be967 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD8E:3BFB17:55F75A1:6FC819E:697532C4 |
| html-safe-nonce | 75c29b517fb0c966157e6b128d88f0ab732393b593f7f1947a1efcdf0dfb27c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDhFOjNCRkIxNzo1NUY3NUExOjZGQzgxOUU6Njk3NTMyQzQiLCJ2aXNpdG9yX2lkIjoiNDczODU0NzcxOTA1NDExMTQyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b9e96b8461ec59799745e5c91ef5d786ceb192ca849e3e67b7a3edcc248164aa |
| hovercard-subject-tag | repository:5171841 |
| 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/python-beaver/python-beaver/issues/403 |
| twitter:image | https://opengraph.githubassets.com/2839c5a9b0d2dd615141483a01e9a440dfb4737bd7a0c773753c6e5cd415d891/python-beaver/python-beaver |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2839c5a9b0d2dd615141483a01e9a440dfb4737bd7a0c773753c6e5cd415d891/python-beaver/python-beaver |
| og:image:alt | Needs Maintainer: python daemon that munches on logs and sends their contents to logstash - python-beaver/python-beaver |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-cache |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width