LogPathMatcher cannot work correctly because of the os specified char "/"


(Kaku Li) #1

file: https://github.com/elastic/beats/blob/a6e232f633480603d7a7e99773841bdc4fa64a62/filebeat/processor/add_kubernetes_metadata/matchers.go

line: 42

code:

if logPath[len(logPath)-1:] != "/" {
		logPath = logPath + "/"
	}

there should be use os.Separator or filepath.Separator instead of the char "/"


(Noémi Ványi) #2

Could you please open a PR on Github with the fix?


(Kaku Li) #3

I have created a PR


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.