Skip to content

Add headers to the config #55

Description

@smoneta

Im able to send logs via postman and I need to add a header, how can I do the same in the code, I tried the following:

const URL = "https://<URL>/services/collector/raw"
const TOKEN = "123456-1234-1234-123456"
const Logger = new SplunkLogger({
    token: TOKEN,
    url: URL,
    headers: {
        'X-Splunk-Request-Channel': TOKEN
}

})

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions