Skip to content

multiple file #24

@Cloud-Dark

Description

@Cloud-Dark

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"
			}
		}
	},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions