Graylog2 / Graylog2/graylog2-server

Non-authenticated requests return 401 but still logs

Open
#21,156 1 comment 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

I setup HTTP GELF Input with Authentication set. It allows me to log and returns 200 when I include the token, but without it it is expectidly returning 401, however the log is still being logged and sent to the stream in graylog.

## Expected Behavior
Without a token it should return 401 and should not log.

## Current Behavior
Without token it is returning 401, but still logging.

## Steps to Reproduce (for bugs)

1. Create HTTP GELF input, with auth and token set
2. Send valid log without auth token

## Context
* I am sending logs from lambda to graylog via GLEF http, and I am hosting graylog on a local server, so I want to use auth for the http endpoint rather than it being open.

## Your Environment
* Graylog Version: 6.1.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.