We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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>}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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>}
The text was updated successfully, but these errors were encountered: