From 82cead2af7986d90119a5357f8377b3dbf3eaa81 Mon Sep 17 00:00:00 2001 From: Cyril Tovena Date: Tue, 9 Feb 2021 11:09:06 +0100 Subject: [PATCH] Increase the windows bookmark buffer. (#3303) See this discussion https://github.com/grafana/loki/pull/3246#discussion_r568674040 Signed-off-by: Cyril Tovena --- pkg/promtail/targets/windows/bookmark.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/promtail/targets/windows/bookmark.go b/pkg/promtail/targets/windows/bookmark.go index 4a13023e5ff1..d8aef00a15c4 100755 --- a/pkg/promtail/targets/windows/bookmark.go +++ b/pkg/promtail/targets/windows/bookmark.go @@ -21,8 +21,8 @@ type bookMark struct { // newBookMark creates a new windows event bookmark. // The bookmark will be saved at the given path. Use save to save the current position for a given event. func newBookMark(path string) (*bookMark, error) { - // 4kb buffer for rendering bookmark - buf := make([]byte, 4<<10) + // 16kb buffer for rendering bookmark + buf := make([]byte, 16<<10) _, err := fs.Stat(path) // creates a new bookmark file if none exists.