logstash json example

root@457165ff1c3e:/# cat /etc/logstash/conf.d/* | grep -v \#

input {
gelf { codec => “json” }
}

filter {
json {
source => “message”
}
}

output {
elasticsearch { hosts => [“0:9200”] }
}
root@457165ff1c3e:/#

securing elasticsearch without shield

search and replace:

$ grep --after-context=3 ports docker-compose.yml
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
$

&

$ grep --after-context=3 expose docker-compose.override.yml
expose:
- "5601"
- "9200"
- "5044"
$

HSTS is HTTP Strict Transport Security: a way for sites to elect to always use HTTPS.

HTTP Strict Transport Security – The Chromium Projects

chrome://net-internals/#hsts

Better Battery Stats (NO ROOT)


Unlock Pro-Level Battery Insights Without Root Access! Learn How to Harness Detailed Battery Stats on Your Android Device 🚀

ha! no root? no problem!

- XDA
adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS
- Google Play
adb -d shell pm grant com.asksven.betterbatterystats android.permission.BATTERY_STATS
adb -d shell pm grant com.asksven.betterbatterystats android.permission.DUMP
adb -d shell pm grant com.asksven.betterbatterystats android.permission.PACKAGE_USAGE_STATS

google/battery-historian: Battery Historian is a tool to analyze battery consumers using Android “bugreport” files.

I Also Like to Live Dangerously

Screen Shot 2016-08-24 at 9.57.35 PM Android Beta Program