diff --git a/pkg/promtail/scrapeconfig/scrapeconfig.go b/pkg/promtail/scrapeconfig/scrapeconfig.go index 4ab3f2f82b0c5..b9cff0a25ceda 100644 --- a/pkg/promtail/scrapeconfig/scrapeconfig.go +++ b/pkg/promtail/scrapeconfig/scrapeconfig.go @@ -190,11 +190,11 @@ type WindowsEventsTargetConfig struct { // timestamp if it's set. UseIncomingTimestamp bool `yaml:"use_incoming_timestamp"` - // BoorkmarkPath sets the bookmark location on the filesystem. + // BookmarkPath sets the bookmark location on the filesystem. // The bookmark contains the current position of the target in XML. // When restarting or rollingout promtail, the target will continue to scrape events where it left off based on the bookmark position. // The position is updated after each entry processed. - BoorkmarkPath string `yaml:"bookmark_path"` + BookmarkPath string `yaml:"bookmark_path"` // PollInterval is the interval at which we're looking if new events are available. By default the target will check every 3seconds. PollInterval time.Duration `yaml:"poll_interval"` diff --git a/pkg/promtail/targets/windows/target.go b/pkg/promtail/targets/windows/target.go index 0048a378d7583..1bc119fc2ba11 100755 --- a/pkg/promtail/targets/windows/target.go +++ b/pkg/promtail/targets/windows/target.go @@ -54,9 +54,9 @@ func New( } defer windows.CloseHandle(sigEvent) - bm, err := newBookMark(cfg.BoorkmarkPath) + bm, err := newBookMark(cfg.BookmarkPath) if err != nil { - return nil, fmt.Errorf("failed to create bookmark using path=%s: %w", cfg.BoorkmarkPath, err) + return nil, fmt.Errorf("failed to create bookmark using path=%s: %w", cfg.BookmarkPath, err) } t := &Target{ diff --git a/pkg/promtail/targets/windows/target_test.go b/pkg/promtail/targets/windows/target_test.go index be857c73141b1..05d07a70cafae 100755 --- a/pkg/promtail/targets/windows/target_test.go +++ b/pkg/promtail/targets/windows/target_test.go @@ -58,7 +58,7 @@ func Test_GetCreateBookrmark(t *testing.T) { client := fake.New(func() {}) defer client.Stop() ta, err := New(util_log.Logger, client, nil, &scrapeconfig.WindowsEventsTargetConfig{ - BoorkmarkPath: "c:foo.xml", + BookmarkPath: "c:foo.xml", PollInterval: time.Microsecond, Query: ` @@ -92,7 +92,7 @@ func Test_GetCreateBookrmark(t *testing.T) { client = fake.New(func() {}) defer client.Stop() ta, err = New(util_log.Logger, client, nil, &scrapeconfig.WindowsEventsTargetConfig{ - BoorkmarkPath: "c:foo.xml", + BookmarkPath: "c:foo.xml", PollInterval: time.Microsecond, Query: `