-
When I use http as input source and distribute it through Nginx in front, I find that there are a lot of error logs in Nginx. I don't know if this is limited by the performance of the http module. But I didn't find any relevant information about the configuration in the configuration documentation. The flow is as follows. Nginx error message.
Addendum: I have a very high volume of Nginx requests, and not all of them are rejected, but most of them are. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hmm, that's interesting. Would you mind sharing the Nginx and Vector configurations (also version numbers)? I can't think of anything offhand that would cause that. |
Beta Was this translation helpful? Give feedback.
-
@jszwedko Hi, this is my configuration nginx version:4.8.5;
vector version: vector 0.15.0 (x86_64-unknown-linux-gnu 994d812 2021-07-16) [sources.httpSources]
type = "http"
address = "172.16.1.41:7001"
path = "/client-lua"
encoding = "json"
headers = ["x-forwarded-for","User-Agent"]
[transforms.parse_logs]
type = "remap"
inputs = ["httpSources"]
source = '''
. = unnest!(.msg)
#.clientIp = del(."x-forwarded-for")
'''
[transforms.parse_logs_two]
type = "remap"
inputs = ["parse_logs"]
source = '''
.appName = .msg.appName
.confId = .msg.confId
.text = .msg.text
.time = .msg.time
.type = .msg.type
.userId = .msg.userId
.clientIp = del(."x-forwarded-for")
.userAgent =del(."User-Agent")
.siteDomain = msg.siteDomain
.userName = msg.userName
.playerVersion = msg.playerVersion
.playerMode = msg.playerMode
.siteId = msg.siteId
#.localTime = del(.timestamp)
.localTime = format_timestamp!(now(),format:"%F %T")
#del(.timestamp)
del(.source_type)
del(.path)
del(.msg)
'''
[sinks.sink_kafka]
type = "kafka"
inputs = ["parse_logs_two"]
bootstrap_servers = "172.16.1.41:9092"
# key_field = "user_id"
topic = "http-vector-kafka"
encoding.codec = "json"
# OPTIONAL - Buffer
[sinks.sink_kafka.buffer]
type = "memory" # default, enum
max_events = 500
max_size = 104900000
when_full = "block" # default, enum |
Beta Was this translation helpful? Give feedback.
-
@jszwedko I apologize for only getting back to you now, my request count is ~100000/sec, this is an estimate and it may actually be more than that. I will use blackhole sink for testing. |
Beta Was this translation helpful? Give feedback.
-
@PanHywel did you ever get around to testing this using the I'll mark the issue as tentatively resolved, but can unresolve it if you are still experiencing problems. |
Beta Was this translation helpful? Give feedback.
@PanHywel did you ever get around to testing this using the
blackhole
sink? Also, we've had a lot of performance releases in the last year, so hopefully your issue has since been resolved in one of those releases.I'll mark the issue as tentatively resolved, but can unresolve it if you are still experiencing problems.