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

Unable to upload metrics to AI #211

Open
jasonbrisbin opened this issue Dec 13, 2019 · 0 comments
Open

Unable to upload metrics to AI #211

jasonbrisbin opened this issue Dec 13, 2019 · 0 comments

Comments

@jasonbrisbin
Copy link

I am trying to upload metrics using logstash-output-applicationinsights and it is failing. Below is the simple config and the output

#######################Logstash config example#####################
input {
#Test Data
#15,20,25,30,35,40
stdin { }
}
filter {
csv {
separator => ","
columns => ["cpu","mem","disk","network","swap","processes"]

}

}

output {
stdout { codec => rubydebug }
applicationinsights {
ikey => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
ai_type => "metric"
ai_metrics_names => ["cpu","mem","disk","network","swap","processes"]
dev_mode => true
}

##########################Output##############################
{
"network" => "30",
"message" => "15,20,25,30,35,40\r",
"disk" => "25",
"processes" => "40",
"host" => "somecomputernamehere",
"cpu" => "15",
"mem" => "20",
"swap" => "35",
"@Version" => "1",
"@timestamp" => 2019-12-13T17:17:33.993Z
}
[2019-12-13T11:17:34,294][ERROR][logstash.outputs.applicationinsights][main] Error occurred sending data to AI. {:exception=>#<NoMethodError: undefined method `[]' for #LogStash::Event:0x10a406f9>}

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

1 participant