Skip to content
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

'max_concurrent_files' must be positive #35080

Closed
jmatsushita opened this issue Sep 9, 2024 · 1 comment · Fixed by #35118
Closed

'max_concurrent_files' must be positive #35080

jmatsushita opened this issue Sep 9, 2024 · 1 comment · Fixed by #35118
Assignees
Labels
bug Something isn't working receiver/filelog

Comments

@jmatsushita
Copy link

Component(s)

receiver/filelog

What happened?

Description

Setting 'max_concurrent_files' to 1 results in the error 'max_concurrent_files' must be positive

Steps to Reproduce

Set filelog receiver config max_concurrent_files: 1

Expected Result

'max_concurrent_files' is enforced correctly

Actual Result

'max_concurrent_files' must be positive

Collector version

v0.106.1

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

exporters:
  otlp:
    endpoint: 192.168.191.3:4317
    tls:
      insecure: true
  debug:

receivers:
  filelog/bot-history:
    include:
    - /hostfs/u/production/bot/log/*-verbose.log.gz
    max_concurrent_files: 1
    max_batches: 1
    start_at: beginning
    retry_on_failure:
      enabled: true
      initial_interval: 15s
      max_elapsed_time: 0
    multiline:
      line_start_pattern: ^\d{4}-[01]\d-[0-3]\dT
    compression: gzip
    operators:
    - type: regex_parser
      regex: (?P<timestamp_field>^\d{4}-\d{2}-\d{2}T\d{2}\d{2}\d{2}(\+|\-)\d{2}\d{2})
      timestamp:
        layout: "%Y-%m-%dT%H%M%S%z"
        parse_from: attributes.timestamp_field

Log output

otel-collector-1  | 2024-09-09T19:29:18.542Z    info    service@v0.106.1/telemetry.go:96        Serving metrics {"address": ":8888", "metrics level": "Normal"}
otel-collector-1  | Error: failed to build pipelines: failed to create "filelog/bot-history" receiver for data type "logs": 'max_concurrent_files' must be positive
otel-collector-1  | 2024/09/09 19:29:18 collector server run finished with error: failed to build pipelines: failed to create "filelog/bot-history" receiver for data type "logs": 'max_concurrent_files' must be positive

Additional context

No response

@jmatsushita jmatsushita added bug Something isn't working needs triage New item requiring triage labels Sep 9, 2024
Copy link
Contributor

github-actions bot commented Sep 9, 2024

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working receiver/filelog
Projects
None yet
2 participants