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

Influxdb logs configuration doesn't work out of the box #11441

Open
jdrouet opened this issue Feb 17, 2022 · 2 comments
Open

Influxdb logs configuration doesn't work out of the box #11441

jdrouet opened this issue Feb 17, 2022 · 2 comments
Labels
sink: influxdb_logs Anything `influxdb_logs` sink related type: bug A code related bug.

Comments

@jdrouet
Copy link
Contributor

jdrouet commented Feb 17, 2022

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

When I take the sample of code from the doc it doesn't work out of the box. I get Configuration error. error=Sink "output_sink": InfluxDB v1 or v2 should be configured as endpoint.

Configuration

[sinks.output]
type = "influxdb_logs"
inputs = [ "my-source-or-transform-id" ]
bucket = "vector-bucket"
consistency = "any"
database = "vector-database"
endpoint = "http://localhost:8086/"
org = "my-org"
password = "${INFLUXDB_PASSWORD}"
retention_policy_name = "autogen"
token = "${INFLUXDB_TOKEN}"
measurement = "vector-logs"
namespace = "service"
username = "todd"

Version

master

Debug Output

❯ RUST_BACKTRACE=full cargo run -- -vvv --config ../vector-testing.toml
    Finished dev [unoptimized + debuginfo] target(s) in 0.45s
     Running `target/debug/vector -vvv --config ../vector-testing.toml`
2022-02-17T13:53:48.183895Z  INFO vector::app: Log level is enabled. level="vector=trace,codec=trace,vrl=trace,file_source=trace,tower_limit=trace,rdkafka=trace,buffers=trace"
2022-02-17T13:53:48.184372Z  INFO vector::app: Loading configs. paths=["../vector-testing.toml"]
2022-02-17T13:53:48.198330Z DEBUG vector::tls::settings: Fetching system root certs.
2022-02-17T13:53:48.204637Z ERROR vector::topology: Configuration error. error=Sink "output_sink": InfluxDB v1 or v2 should be configured as endpoint.

Example Data

No response

Additional Context

No response

References

No response

@jdrouet jdrouet added the type: bug A code related bug. label Feb 17, 2022
@jszwedko jszwedko added the sink: influxdb_logs Anything `influxdb_logs` sink related label Feb 17, 2022
@LeeTeng2001
Copy link

I've encountered the same issue, I would like to work on it

@jszwedko
Copy link
Member

I've encountered the same issue, I would like to work on it

Great! Happy to review a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sink: influxdb_logs Anything `influxdb_logs` sink related type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

3 participants