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

If a field isn't found, the field interpretation string is sent to influxdb #65

Open
Ultimation opened this issue Jul 12, 2017 · 3 comments
Assignees

Comments

@Ultimation
Copy link
Contributor

Ultimation commented Jul 12, 2017

  • Version:
    logstash-5.4.1-1.noarch
    logstash-output-influxdb (5.0.0)
  • Operating System:
    Centos 7.2
  • Config File (if you have sensitive info, please remove it):
influxdb {
  host => "localhost"
  db => "logstash"
  data_points => {
    "always_exists" => "%{[fielda][fieldb]}"
    "sometimes_exists" => "%{[fielda][fieldc]}"
  }
}

I have a range of data points in my config, some of which don't always exist.
When they don't exist, I don't want the plugin to send anything. Instead it will send "%{[fielda][fieldc]}" into the influx database as a string.

I can get around this by having multiple modules instantiated in the config file for each situation, but sending the string interpretation seems wrong.

@IngaFeick
Copy link
Collaborator

Ran into the same issue a couple of days ago. I am currently testing a patch, might send a PR in a couple of days.

@IngaFeick IngaFeick self-assigned this Jul 12, 2017
@Ultimation
Copy link
Contributor Author

Have we got any progress on this? I'm noticing it also happening on empty strings in fields too now

@trondvh
Copy link

trondvh commented Dec 5, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants