Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple file #24

Open
Cloud-Dark opened this issue Mar 18, 2024 · 0 comments
Open

multiple file #24

Cloud-Dark opened this issue Mar 18, 2024 · 0 comments

Comments

@Cloud-Dark
Copy link

hi dear,
how to monitor 2 file syslog and authlog?
but in format in transporters have id, file syslog or authlog

		"http": {
			"type": "http",
			"config": {
				"url": "http://10.0.24.200:3000/api/syslog",
				"format": {
					"msg": "${originalMessage}",
					"timestamp": "${timestamp}",
                                        "type": "['authlog','syslog']",
				},
				"method": "POST",
				"headers": {
					"Content-Type": "application/json"
				}
			}
		}
	}

and fix this

	"inputs": {
		"file": {
			"type": "file",
			"config": {
				"path": ['/var/log/syslog', '/var/log/authlog'],
				"watch": true,
				"readmode": "watermark",
				"offset": "start"
			}
		}
	},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant