A Splunk App for getting data from your Robot Litter Box!
-
Install the App on a Forwarder.
-
Create the litter-robot index and enable the input scripted input.
-
Get x-api-key from the Litter Robot Connect App. Hell if I know how they translate the credentials into the JWT and then into the x-api-key, but you can use burpsuite or some other web proxy solution to intercept web traffic between the app and the CloudFront API.
Resources: -
Add x-api token to state file. Copy or rename
state.example
tostate
. Add in your x-api token. It should look something like:
[auth]
x-api-key = sesks4saFEdlk332klssSDSKGAar
- Install the App on Search Heads.
- Coming Soon - Alert:
run_cycle.py
(venv)whisper:litter-robot david$ python activity.py
{
"timestamp": "2017-12-16T23:44:38.689644",
"unitStatus": "RDY",
"litterRobotId": "3434lddaseb3c9"
}
{
"timestamp": "2017-12-16T23:46:43.766606",
"unitStatus": "CCP",
"litterRobotId": "3434lddaseb3c9"
}
{
"timestamp": "2017-12-16T23:46:51.379723",
"unitStatus": "CST",
"litterRobotId": "3434lddaseb3c9"
}
{
"timestamp": "2017-12-16T23:46:57.705861",
"unitStatus": "CCC",
"litterRobotId": "3434lddaseb3c9"
}