anomaly detection in go - mikelangelo project · pdf file•now researcher intel labs...

18
ANOMALY DETECTION IN GO Marcin Spoczynski Researcher @ Intel Labs [email protected] GopherCon 15-07-2017

Upload: lamkhue

Post on 08-Mar-2018

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

ANOMALY DETECTION IN GO

Marcin Spoczynski

Researcher @ Intel Labs [email protected]

GopherCon

15-07-2017

Page 2: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Legal Disclaimer

Intel, the Intel logo and Xeon are trademarks of Intel Corporation in the U.S. and/or other countries.

*Other names and brands may be claimed as the property of others.

Copyright © 2017 Intel Corporation. All rights reserved

Co-funded by the Horizon 2020 Framework Programme of the European Union

Page 3: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Who Am I

• Researcher on H2020 Mikelangelo project / Cloud Engineer

• Work/Research: telemetry, tools, cloud software management, scheduling

• now Researcher Intel Labs previously Python/C Developer

Page 4: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created
Page 5: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Telemetry

Telemetry is an automated communications process by which measurements and other data are collected at remote or inaccessible

points and transmitted to receiving equipment for monitoring. The word is derived from Greek roots: tele = remote, and metron =

measure.

source: wikipedia

Page 6: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

What and why do we collect ?

Page 7: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Lots of data

After 1 day we collected around 1TB data from various sources:

- OS traces, syscall count

- Application layer traces

- Hardware layer traces

Page 8: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Collected data mostly static

1500135762 / cpu.utilization / 20

1500135462 / cpu.utilization / 20

1500135562 / cpu.utilization / 20

1500135962 / cpu.utilization / 20

1500137262 / cpu.utilization / 20

1500139362 / cpu.utilization / 29

1500141362 / cpu.utilization / 20

Page 9: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created
Page 10: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Anomaly Detection

In data mining, anomaly detection (also outlier detection) is the identification of items, events or observations which do not conform

to an expected pattern or other items in a dataset.source: http://www.wikipedia.com

Page 11: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Anomaly Detection

Typically the anomalous items will translate to some kind of problem such as software misconfiguration, attack, unexpected software

behavior, hardware or software errors.

Page 12: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Anomaly Detection – Tukey Method

The intention of this method is to reduce the amount of data that needs to be transmitted without compromising the information that can be gained from potential usages of the data

https://github.com/intelsdi-x/snap-plugin-processor-anomalydetection

Page 13: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created
Page 14: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Anomaly Detection – ESD

Seasonal Hybrid ESD (S-H-ESD) builds upon the Generalized ESD test for detecting anomalies. Note that S-H-ESD can be used to detect both global as well as local anomalies. This is achieved by employing time series decomposition and using robust statistical metrics, viz., median together with ESD.

https://github.com/intelsdi-x/snap-plugin-processor-anomalydetection

Page 15: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Where anomaly detection landed

Page 16: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

Anomaly Detection – Use Case

8 x less samples

data shape preserved

Page 17: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created

[email protected]

@sandlbn

github.com/sandlbn

Page 18: anomaly detection in go - MIKELANGELO project · PDF file•now Researcher Intel Labs previously Python/C Developer. Telemetry ... CTPClassification=CTP_PUBLIC:VisualMarkings= Created