39

Information is Power

Embed Size (px)

Citation preview

Page 1: Information is Power
Page 2: Information is Power
Page 3: Information is Power

THANKS!

Zequi Vazquez @RabbitLair Information is Power

Page 4: Information is Power

Ezequiel ”Zequi”Vazquez

Backend Developer

Sysadmin & DevOps

Hacking & Security

Speaker since 2013

Zequi Vazquez @RabbitLair Information is Power

Page 5: Information is Power

Zequi Vazquez @RabbitLair Information is Power

Page 6: Information is Power

Zequi Vazquez @RabbitLair Information is Power

Page 7: Information is Power

Zequi Vazquez @RabbitLair Information is Power

Page 8: Information is Power

Zequi Vazquez @RabbitLair Information is Power

Page 9: Information is Power
Page 10: Information is Power

Database Contents (?)

Zequi Vazquez @RabbitLair Information is Power

Page 11: Information is Power

Application/Service Logs (?)

Zequi Vazquez @RabbitLair Information is Power

Page 12: Information is Power

User Activity (?)

Zequi Vazquez @RabbitLair Information is Power

Page 13: Information is Power

I bet you can think of more information sources

Zequi Vazquez @RabbitLair Information is Power

Page 14: Information is Power

Too much information and no control

Zequi Vazquez @RabbitLair Information is Power

Page 15: Information is Power

We need to transform information into data

Zequi Vazquez @RabbitLair Information is Power

Page 16: Information is Power
Page 17: Information is Power

Identify our high level goalsImprove performance

Identify points of failure

Know users behavior

Be aware of SLAs observance

. . .

Zequi Vazquez @RabbitLair Information is Power

Page 18: Information is Power

Metrics definition

Zequi Vazquez @RabbitLair Information is Power

Page 19: Information is Power

Capacity planning

Zequi Vazquez @RabbitLair Information is Power

Page 20: Information is Power

Data storage

Zequi Vazquez @RabbitLair Information is Power

Page 21: Information is Power
Page 22: Information is Power

From bottom to top

Zequi Vazquez @RabbitLair Information is Power

Page 23: Information is Power

Firewall & IDS/IPS metrics

Scanners (network, sqlmap, spiders)

Bruteforce attacks

Incoming and outcoming connections

Ip addresses, user agents and more

Identify and block (?)

Zequi Vazquez @RabbitLair Information is Power

Page 24: Information is Power

Network metrics

Number of connections/rejections

Speed, bandwidth consumption, latency

Specially relevant on cloud environments

Zequi Vazquez @RabbitLair Information is Power

Page 25: Information is Power

Infrastructure metrics

Monitorize all services on your system

Service response time & uptime

Consider scaling, prepare for peaks

Centralize logs: one log to rule them all

Zequi Vazquez @RabbitLair Information is Power

Page 26: Information is Power

Cache metrics

Available memory & usage

Hit/Miss ratio

Evisceration ratio

Zequi Vazquez @RabbitLair Information is Power

Page 27: Information is Power

System metrics

Identify bottlenecks!

Memory management & swapping

IO usage & free space

Keep an eye on CPU

syslog!

Zequi Vazquez @RabbitLair Information is Power

Page 28: Information is Power

PHP metrics

Number of threads

Memory per thread

Timeouts

Number of requests per second

Opcache usage

Zequi Vazquez @RabbitLair Information is Power

Page 29: Information is Power

Application metrics

Plan error handling and messages smartly

Profiling: log request times

User behavior: It is not spying (?)

SQL queries

Zequi Vazquez @RabbitLair Information is Power

Page 30: Information is Power
Page 31: Information is Power

Hundreds of options

Zequi Vazquez @RabbitLair Information is Power

Page 32: Information is Power

Nagios

Zabbix

Spiceworks

Zequi Vazquez @RabbitLair Information is Power

Page 33: Information is Power

Munin

Monit

New Relic

Zequi Vazquez @RabbitLair Information is Power

Page 34: Information is Power

Logstash

Splunk

Scribe

Kafka

Zequi Vazquez @RabbitLair Information is Power

Page 35: Information is Power

Did someone mentioned cloud?

Zequi Vazquez @RabbitLair Information is Power

Page 36: Information is Power
Page 37: Information is Power

Identify your goals

Collect data wisely

Learn to read your metrics

Use data to empower your site

Zequi Vazquez @RabbitLair Information is Power

Page 38: Information is Power

Zequi Vazquez @RabbitLair Information is Power

Page 39: Information is Power

Thank you!

@RabbitLair

zequi[at]lullabot[dot]com

Zequi Vazquez @RabbitLair Information is Power