OpenSprinkler Pi with Splunk
OpenSprinkler Pi with Splunk
- Setup Virtual Box
- Install Debian Linux
- Install Splunk
- Install listener on Splunk Server
- Install Splunk Forwarder on Splunk Server
- Install Splunk Forwarder on Raspberry Pi server
/opt/splunkforwarder/bin/splunk start
/opt/splunkforwarder/bin/splunk list forward-server
- Point splunk forwarder to ~pi/OSPi/data
- Install Weather Underground App on splunk server
sourcetype=wunderground | table _time, dewpoint_c, temp_c, precip_today_metric, relative_humidity
sourcetype=OSPi station="2" | rex field="duration" "(?<min>\d{2}):(?<sec>\d{2})" | table _time, min
sourcetype=OSPi station="2"| rex field="duration" "(?<minutes>\d{2}):(?<sec>\d{2})" | eval Time = _time | eval Time=strftime(Time, "%d/%m") | table Time, minutes | reverse | uniq
Comments
Post a Comment