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

Allow setting custom http headers for elasticsearch output #15476

Closed
AndrewChubatiuk opened this issue Jun 8, 2024 · 0 comments · Fixed by #15477
Closed

Allow setting custom http headers for elasticsearch output #15476

AndrewChubatiuk opened this issue Jun 8, 2024 · 0 comments · Fixed by #15477
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@AndrewChubatiuk
Copy link
Contributor

AndrewChubatiuk commented Jun 8, 2024

Use Case

to ingest data from telegraf to VictoriaLogs it's required to remap telegraf fields to fields, which are supported by VictoriaLogs

Expected behavior

given below config, should allow properly ingest data into victorialogs from tail input

[[outputs.elasticsearch]]
  urls = ["http://localhost:9428/insert/elasticsearch"]
  timeout = "1m"
  flush_interval = "30s"
  enable_sniffer = false
  health_check_interval = "0s"
  index_name = "device_log-%Y.%m.%d"
  manage_template = false
  template_name = "telegraf"
  overwrite_template = false
  namepass = ["tail"]
  [outputs.elasticsearch.headers]
    "VL-Msg-Field" = "tail.value"
    "VL-Time-Field" = "@timestamp"
    "VL-Stream-Fields" = "measurement_name"

Actual behavior

Currently ingestion from telegraf doesn't create any records in VictoriaLogs

Additional info

No response

@AndrewChubatiuk AndrewChubatiuk added the feature request Requests for new plugin and for new features to existing plugins label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
1 participant