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

Can now retrieve fields from event #104

Closed
wants to merge 3 commits into from

Conversation

odolbeau
Copy link

@odolbeau odolbeau commented Sep 9, 2014

Linked to #103

My configuration file look like this :

input {
  gelf {
    port => 12201
    type => gelf
  }
}

output {
  influxdb {
    host => "X.X.X.X"
    port => 8086
    db => "metrics"
    user => "user"
    password => "password"
    series => "%{message}"
    columns_from_event_fields => true
    ignore_columns => ['@timestamp']
  }
}

Th influxdb output can now automatically use all fields available in event object and send it to influxdb.

@odolbeau odolbeau force-pushed the feat-update-influxdb-output branch from 4bd9a05 to 45b0bb9 Compare September 9, 2014 09:18
@mikn
Copy link

mikn commented Sep 26, 2014

Hi! Thank you for this patch! I'm rather much a beginner to both ruby and logstash, so it helped me do what I actually was missing from this output module. :)

Three cosmetic comments on this; Firstly you can remove the required on the "data_points" configuration variable, secondly, the use_data_points configuration variable is rather confusing, it should be called columns_from_event_fields or similar instead (I think you also forgot an @ sign when you use it) and thirdly, the ignore_data_points should be called ignore_columns.

@odolbeau
Copy link
Author

Hi @mikn !
Thanks for reviewing. I just update the PR. :)

Tell me if you need anything else.

@gdlx
Copy link

gdlx commented Oct 28, 2014

+1
My data is already formatted in JSON, I don't need a second formatting.

@odolbeau
Copy link
Author

Up ?

@JulienChampseix
Copy link

@odolbeau Thanks for your output fixes/improvement.
How your output should be formatted with the latest version (commit 50184ff) ?
@jordansissel any idea when this output will be merged/patched on the master branch ?

@wiibaa
Copy link

wiibaa commented Apr 16, 2015

@odolbeau could you please have time to review/comment (test?) the following pull request
logstash-plugins/logstash-output-influxdb#13
that is very similar to yours with the only advantage to already exists in the correct repository.
It would help to reduce duplicated issues/PR from this "deprecated" repository and also give more confidence to the logstash team in integrating this in the plugin.
Thanks in advance.

@untergeek untergeek closed this Jun 29, 2016
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

Successfully merging this pull request may close these issues.

7 participants