Vector: Lookup error caused by field prefixed with "@"

Created on 2 Oct 2020  路  4Comments  路  Source: timberio/vector

Vector Version

nightly from oct 2

Vector Configuration File

[transforms.add_fields]
    type = "add_fields"
    inputs = ["input"]
    overwrite = false
    fields."@timestamp" = "{{ timestamp }}"

Expected Behavior

Happily parse a field starting with "@"

Actual Behavior

Oct 02 20:55:18.418  INFO vector::app: Log level "info" is enabled.
Oct 02 20:55:18.419  INFO vector::app: Loading configs. path=["/etc/vector/vector.toml"]
Oct 02 20:55:18.448 ERROR vector::topology: Configuration error: Transform "add_fields":  --> 1:1
  |
1 | @timestamp
  | ^---
  |
  = expected lookup

I discussed with @Hoverbear briefly and should have a PR in shortly.

config bug

Most helpful comment

@binarylogic ah, I dragged this in Zenhub without realizing this got closed.

But yes and no, this got "resolved" because #4804 got merged, which reverts the Lookup changes. We'll make sure this works once we re-introduce this before the next release, but there's no longer a "bug" for now.

It's fine leaving this closed, as we're aware of the fact that we need to make sure Lookup is backward compatible.

All 4 comments

Re-assigning myself, since I've already started working on this locally.

@JeanMertz just to let you know that I had a similar problema with the nightly build, but with the rename and remove transformations.
See https://github.com/timberio/vector/issues/4582#issuecomment-711269897

@JeanMertz was this resolved through a PR?

@binarylogic ah, I dragged this in Zenhub without realizing this got closed.

But yes and no, this got "resolved" because #4804 got merged, which reverts the Lookup changes. We'll make sure this works once we re-introduce this before the next release, but there's no longer a "bug" for now.

It's fine leaving this closed, as we're aware of the fact that we need to make sure Lookup is backward compatible.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

a-rodin picture a-rodin  路  3Comments

valyala picture valyala  路  3Comments

a-rodin picture a-rodin  路  3Comments

jhgg picture jhgg  路  4Comments

binarylogic picture binarylogic  路  4Comments