-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filelog receiver: the last event of every data file was lost #4849
Comments
@djaglowski this sounds like a filelog bug, I suspect it may be losing the first or the last event in a file. Will you be able to look into this? |
@tigrannajaryan I agree it sounds like a bug. I'm OOO until Thursday but will look into then. |
@djaglowski thanks, I'll assign this to you. |
Here's what I believe is going on:
In a sense, this is working as intended, in that we're not "prematurely" consuming a log. However, the case of Fortunately, I believe we have an appropriate mechanism in place.
|
Thanks for analysis. Perhaps we can just make |
@tigrannajaryan Good point. I like the simpler version too, and agree there's little downside. @sumo-drosiek, Can I ask your opinion on this, since you had the original use case and implemented the feature? |
@djaglowski @tigrannajaryan There is no need in my opinion to make it dynamic, I would left it as simple value. |
Describe the bug
A clear and concise description of what the bug is.
The last event of every data files are lost.
Component with this issue: filelog
Steps to reproduce
If possible, provide a recipe for reproducing the error.
Data ingestion:
Test setup:
otel agent ---> otel agent (forwarder) ----> Splunk
What did you expect to see?
A clear and concise description of what you expected to see.
In the splunk, we should see 20,000,000 events.
What did you see instead?
A clear and concise description of what you saw instead.
Lost 648 events. And from Splunk, we can see the lost events are the last event of each data file.
What version did you use?
Version: (e.g.,
v0.4.0
,1eb551b
, etc)What config did you use?
Config: (e.g. the yaml config file)
agent with file log receiver:
eceivers:
filelog:
include:
- /home/ansible/data/otel_mixed_data_20M/generate/Memory.perfmon*
- /home/ansible/data/otel_mixed_data_20M/generate/CPUTime.perfmon*
- /home/ansible/data/otel_mixed_data_20M/generate/change.security.628.windows*
- /home/ansible/data/otel_mixed_data_20M/generate/change.security.1102.windows*
- /home/ansible/data/otel_mixed_data_20M/generate/auth_win_Security.4776.windows*
- /home/ansible/data/otel_mixed_data_20M/generate/network_samplelog_tcp_connection_failure.cisco.asa*
- /home/ansible/data/otel_mixed_data_20M/generate/web_noncorpsite.websense*
- /home/ansible/data/otel_mixed_data_20M/generate/instrusion.cisco.asa*
multiline:
line_start_pattern: ^\d{2}/\d{2}/\d{2,4}\s+\d{2}:\d{2}:\d{2}
start_at: beginning
include_file_name: false
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 5s
static_configs:
- targets: ['0.0.0.0:8888']
metric_relabel_configs:
- source_labels: [ name ]
regex: '.grpc_io.'
action: drop
processors:
batch:
memory_limiter:
ballast_size_mib: ${SPLUNK_BALLAST_SIZE_MIB}
check_interval: 2s
limit_mib: ${SPLUNK_MEMORY_LIMIT_MIB}
exporters:
otlphttp:
endpoint: "http://:55681"
insecure: true
compression: none/gzip
splunk_hec:
token: "${SPLUNK_HEC_TOKEN}"
endpoint: "${SPLUNK_HEC_URL}"
source: "metrics"
sourcetype: "otel_hostmetrics"
service:
pipelines:
logs:
receivers:
- filelog
processors: [memory_limiter, batch]
exporters: [otlphttp]
agent forwarder/adapter:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:55681
otlp/tls:
protocols:
grpc:
endpoint: 0.0.0.0:55690
tls_settings:
cert_file: /home/ansible/tls_cert/server.crt
key_file: /home/ansible/tls_cert/server.key
processors:
batch:
exporters:
splunk_hec:
token: "${SPLUNK_HEC_TOKEN}"
endpoint: "${SPLUNK_HEC_URL}"
source: "otel"
sourcetype: "otel_otlp"
max_connections: 1000
service:
pipelines:
logs:
receivers:
- otlp
- otlp/tls
processors: [batch]
exporters: [splunk_hec]
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
Additional context
Add any other context about the problem here.
@tigrannajaryan
The text was updated successfully, but these errors were encountered: