# Logstash - Datadog metrics - Unable to send them to Datadog

**URL:** <https://discuss.elastic.co/t/logstash-datadog-metrics-unable-to-send-them-to-datadog/74240>\
**Category:** Logstash\
**Created:** [February 7, 2017, 3:28pm UTC](https://discuss.elastic.co/t/logstash-datadog-metrics-unable-to-send-them-to-datadog/74240 "2017-02-07T15:28:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-niceact](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@david-niceact](https://discuss.elastic.co/u/david-niceact)\
**Post date:** [February 7, 2017, 3:28pm UTC](https://discuss.elastic.co/t/logstash-datadog-metrics-unable-to-send-them-to-datadog/74240/1 "2017-02-07T15:28:11Z")

</div>

Hello everyone,

I am trying to use the Datadog metric plugin for logstash. I have configured it to use a CSV file as an input and then perform the parse with grok. Unfortately I am not able to take these metrics and push them to Datadog using the community supported Datadog metrics plugin.

I would apprecaite any help to get this off the ground.

Thanks!

My logstash file  
input {  
file {  
path =\> "/opt/server\_counters.log.csv"  
type =\> "csv"  
}  
}

filter {  
if [type] == "csv" {  
csv {  
remove\_field =\> ["message"]  
columns =\> [  
"log\_timestamp",  
"CPU",  
"Usage",  
"Threads",  
"File Descriptors",  
"RSS Virtual Bytes",  
"Available Bytes",  
"Broker Memory Usage",  
"Broker Store Usage",  
"Total Messages Enqueued",  
"Total Messages Dequeued",  
"Number of Pending Messages",  
"Number of Queues",  
"Number of Topics",  
"Total CPU Usage",  
"Process - IO Read Operations/sec",  
"Process - IO Write Operations/sec",  
"Disk Stats - Reads Completed Successfully/sec",  
"Disk Stats - Writes Completed Successfully/sec",  
"App Allocated Bytes",  
"Allocator Sys Bytes",  
"Allocator Available Bytes",  
"Allocator Thread Caches Bytes"  
]  
convert =\> {  
"CPU" =\> "float"  
"Usage" =\> "float"  
"Threads" =\> "float"  
"File Descriptors" =\> "float"  
"RSS Virtual Bytes" =\> "float"  
"Available Bytes" =\> "float"  
"Broker Memory Usage" =\> "float"  
"Broker Store Usage" =\> "float"  
"Total Messages Enqueued" =\> "float"  
"Total Messages Dequeued" =\> "float"  
"Number of Pending Messages" =\> "float"  
"Number of Queues" =\> "float"  
"Number of Topics" =\> "float"  
"Total CPU Usage" =\> "float"  
"Process - IO Read Operations/sec" =\> "float"  
"Process - IO Write Operations/sec" =\> "float"  
"Disk Stats - Reads Completed Successfully/sec" =\> "float"  
"Disk Stats - Writes Completed Successfully/sec" =\> "float"  
"App Allocated Bytes" =\> "float"  
"Allocator Sys Bytes" =\> "float"  
"Allocator Available Bytes" =\> "float"  
"Allocator Thread Caches Bytes" =\> "float"  
}  
}

}  
}

output {  
datadog\_metrics {  
api\_key =\> "my-api-key"  
metric\_name =\> "metric-name"  
metric\_type =\> "gauge"  
metric\_value =\> "metric value"  
timeframe =\> 1  
}  
}

---

<div class="post-metadata">

**Author:** ![david-niceact](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@david-niceact](https://discuss.elastic.co/u/david-niceact)\
**Post date:** [February 7, 2017, 3:33pm UTC](https://discuss.elastic.co/t/logstash-datadog-metrics-unable-to-send-them-to-datadog/74240/2 "2017-02-07T15:33:17Z")

</div>

For example, this is my csv file I am trying to parse in logstash and send to datadog using datadog\_metrics plugin.

Process ID=26350,Messaging Broker Name=ip-10-220-2-122,Broker Memory Limit=181665792,Broker Store Limit=1594460092  
Time,CPU Usage,Threads,File Descriptors,RSS,Virtual Bytes,Available Bytes,Broker Memory Usage,Broker Store Usage,Total Messages Enqueued,Total Messages Dequeued,Number of Pending Messages,Number of Queues,Number of Topics,Total CPU Usage, Process - IO Read Operations/sec, Process - IO Write Operations/sec, Disk Stats - Reads Completed Successfully/sec, Disk Stats - Writes Completed Successfully/sec,App Allocated Bytes,Allocator Sys Bytes,Allocator Available Bytes,Allocator Thread Caches Bytes  
2017-Jan-31 16:09:11.487,2.298,73,305,426479616,3027333120,612290560,0,3,0,0,0,0,0,3.684,,,0,2,57887832,78528512,0,6655960  
2017-Jan-31 16:09:21.487,1.400,73,305,427180032,3027333120,613728256,0,3,0,0,0,0,0,2.254,,,0,0,58121600,78528512,0,6965992  
2017-Jan-31 16:09:31.487,1.300,73,300,427257856,3027333120,613584896,0,3,0,0,0,0,0,4.574,,,0,2,57615648,78528512,0,7105288

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 7, 2017, 3:33pm UTC](https://discuss.elastic.co/t/logstash-datadog-metrics-unable-to-send-them-to-datadog/74240/3 "2017-03-07T15:33:20Z")

</div>

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