InfluxDB Output: parametric data_points

Hello,

I want to write this data into InfluxDB:

{
     "product" => "telegraf",
     "data_points" => {
        "TraficoEntrante" => 2474864615,
               "hostname" => "host1",
        "TraficoSaliente" => 2474864615,
                   "host" => "host2",
             "agent_host" => "host3",
         "NombreInterfaz" => "lo"
    },
    "@timestamp" => 2017-08-04T17:30:23.883Z,
    "send_as_tags" => [
        [0] "hostname",
        [1] "host",
        [2] "agent_host",
        [3] "NombreInterfaz"
    ],
    "name" => "Network",
    "@version" => "1",
          "fields" => {
        "TraficoEntrante" => 2474864615,
        "TraficoSaliente" => 2474864615
    },
  
    "timestamp" => 1501867801
}

But the output throws me error this error:

"Something is wrong with your configuration."

This is my output configuration:

influxdb {
           host => "InfluxHost"
           user => "user"
           password => "password"
           port => "port"
           db => "database"
           measurement => "%{name}"
           allow_time_override => true
           time => "%{timestamp}"
           data_points => "%{data_points}"
           send_as_tags => "%{send_as_tags}"
          }

I think I have all the required field. The problem must be the data_points or the send_as_tags format, but I think they are fine.

"Something is wrong with your configuration."

I'm pretty sure that's not the only error message you get.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.