Skip to content

Layout doesn't seem to control formatting #35

@ignusfast

Description

@ignusfast

I'm trying to use the following target Layout to get NLog to send the message verbatim, but it still wraps it in a bunch of unnecessary data... The same target Layout works fine for file logging.

_splunkTarget = new SplunkHttpEventCollector() {
ServerUrl = new Uri(SplunkURL),
Token = SplunkHecToken,
Channel = SplunkHecToken,
RetriesOnError = 1,
MaxConnectionsPerServer = 20,
Layout = "${message}"
};

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions