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

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

line: 42


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

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

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

I have created a PR

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