Created
February 18, 2020 02:59
-
-
Save bmorelli25/6bf35edfe557d96a70c9ffbd79a2604f to your computer and use it in GitHub Desktop.
FitBit heart rate pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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