Skip to content

Instantly share code, notes, and snippets.

@bmorelli25
Created February 18, 2020 02:59
Show Gist options
  • Save bmorelli25/6bf35edfe557d96a70c9ffbd79a2604f to your computer and use it in GitHub Desktop.
Save bmorelli25/6bf35edfe557d96a70c9ffbd79a2604f to your computer and use it in GitHub Desktop.
FitBit heart rate pipeline
PUT _ingest/pipeline/fb-heart-rate
{
"description": "Extract FitBit heart rate data",
"processors": [
{
"grok": {
"field": "message",
"patterns": [
"\"dateTime\" : \"%{DATESTAMP:fb.timestamp}\",\n \"value\" : {\n \"bpm\" : %{NUMBER:fb.bpm},\n \"confidence\" : %{NUMBER:fb.confidence}"
]
}
},
{
"date" : {
"field" : "fb.timestamp",
"formats" : ["MM/dd/yy HH:mm:ss"]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment