Skip to content

Commit

Permalink
Add face (#9)
Browse files Browse the repository at this point in the history
This commit adds the splunk_hec puppet face/app allowing for a cat json | puppet splunk_hec like workflow. The first functionality of this code is to enable sending pe metrics data to Splunk using the current CS best practices for collecting the CS data.

This will need changes in the puppet metrics collector module managed by CS to enable that specific workflow: puppetlabs/puppetlabs-puppet_metrics_collector#6

This also adds the transaction_uuid to the fact event submission, so correlation of facts created, the catalog, and the report are now possible.

This introduces an epochtime function to ensure that across all of our event submission code, we're always generating a timestamp of the same precision and in the same way.
  • Loading branch information
mrzarquon authored and Helen committed May 17, 2019
1 parent a223c17 commit b39cd4e
Show file tree
Hide file tree
Showing 6 changed files with 684 additions and 5 deletions.
8 changes: 8 additions & 0 deletions examples/foo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"timestamp": "2019-05-03T05:55:30+00:00",
"servers": {
"127-0-0-1":{
"asdfsafsdf": { "bas":"bin"}
}
}
}
Loading

0 comments on commit b39cd4e

Please sign in to comment.