Post on 15-Jul-2015
Copyright © 2014 Splunk Inc.
Elias Haddad Senior Sales Engineer – BD, Splunk
Using Selenium and Splunk for TransacFon Monitoring Insight
Disclaimer
2
During the course of this presentaFon, we may make forward-‐looking statements regarding future events or the expected performance of the company. We cauFon you that such statements reflect our current expectaFons and
esFmates based on factors currently known to us and that actual events or results could differ materially. For important factors that may cause actual results to differ from those contained in our forward-‐looking statements,
please review our filings with the SEC. The forward-‐looking statements made in the this presentaFon are being made as of the Fme and date of its live presentaFon. If reviewed aRer its live presentaFon, this presentaFon may not contain current or accurate informaFon. We do not assume any obligaFon to update any forward-‐looking statements we may make. In addiFon, any informaFon about our roadmap outlines our general product direcFon and is subject to change at any Fme without noFce. It is for informaFonal purposes only, and shall not be incorporated into any contract or other commitment. Splunk undertakes no obligaFon either to develop the features or funcFonality described or to
include any such feature or funcFonality in a future release.
Agenda ! IntroducFon to SyntheFc Monitoring ! IntroducFon to Selenium ! Demo of Selenium IDE ! Splunk App for SyntheFc TransacFon Monitoring
– Architecture – ConfiguraFon and Requirements – Metrics Captured
! Demo
3
SyntheFc Monitoring Intro
4
! Simulate End User InteracFons ! Measure Performance and Availability of your ApplicaFon ! Measure TransacFon Response Time ! Compare performance and availability by:
– Geography and locaFon – Browser – OperaFng System
SyntheFc Monitoring Benefits
5
! Monitor your applicaFon performance and availability 24x7 ! Be proacFve ! Measure end-‐user response Fme ! Be the first to know your applicaFon is down or slow ! Measure performance and availability of Saas applicaFons ! Baseline and analyze trends across geographies ! Measure your applicaFon and transacFon SLAs ! Real user monitoring and syntheFc monitoring complement each other
What is Selenium
6
! Selenium is a browser automaFon Tool ! Usage:
– FuncFonal tesFng is primary usage – Can be used for administraFve automaFon purposes
! Support of Largest Browser Vendors – Firefox – IE – Opera – Safari
! Support for mobile device automaFon
Selenium Components
7
! Selenium IDE – Firefox Add-‐on – Allows to quickly create automaFon scripts – Record and Replay – Allows to export script in mulFple languages
! Selenium Webdriver – CollecFon of languages specific bindings to drive browser automaFon – Automate browser-‐based regression tests – Simulate interacFons across mulFple environments
Demo Selenium IDE
8
Splunk App for SyntheFc TransacFon Monitoring
9
! AutomaFon scripts need to be recorded in Selenium IDE ! Splunk App for SyntheFc TransacFon Monitoring allows you to monitor end-‐user performance
! Measure performance from different locaFons, browsers and operaFon systems
! App includes the following components: – Python Module to measure response Fme, OS, browser type, locaFon, etc. – Scripted inputs to replay Selenium Scripts and index results – Dashboards to capture and compare different metrics – Scripted input to measure network performance and latency
Why Splunk and Selenium
10
• Leverage the power of Selenium as an open-‐source automaFon tool
• Leverage Splunk Enterprise to: – Measure performance of your applicaFon
from different geographies – Measure your applicaFon SLAs – Leverage Splunk agile and flexible reporFng – Leverage the power of Splunk as an analyFcs
pladorm – Correlate data with other metrics such as
ê ApplicaFon log files to capture applicaFon errors and back-‐end performance
ê Stream App metrics for real user applicaFon metrics
ê Network metrics ê Infrastructure metrics
Screenshot here
Enterprise Scalability
Search and Inves4ga4on
Proac4ve Monitoring
Opera4onal Visibility
Real-‐4me Business Insights
App Architecture
11
! AutomaFon scripts need to be executed on Splunk Universal Forwarder
! Forwarders are ideally located in same applicaFon end user geographies
! Scripted inputs are used to schedule script execuFon
! Splunk Deployment Manager can be used to manage – Scripted inputs distribuFon across
Universal Forwarder – Push configuraFon and Selenium
Webdriver to Universal Forwarder
Forwarder2 Geography2
Search head
Forwarder3 Geography3
Forwarder1 Geography 1
Indexer2 Indexer1
App ConfiguraFon
12
! Prerequisites – Import Python Modules to your Python Environment (selenium and unigest) – Recommended Installing New Python – Copy Selenium Webdriver on all Forwarder where script will be executed – Browser need to be installed on universal forwarder machines
! Selenium IDE used to Record Scripts and export them in Python ! Script are scheduled to be executed automaFcally using Scripted inputs
! Splunk TransacFon class needs to be used to define transacFon start and end
Metrics Captured by the App
13
Performance by Geography • Errors by geography • SLAs by geography • Availability by geography • Performance by geography • Network latency by geography Screenshot here
Metrics Captured by the App
14
Performance by ApplicaFon • Availability by applicaFon • Performance by applicaFon • SLAs by applicaFon • Errors by applicaFon
Screenshot here
Metrics Captured by the App
15
TransacFon Response Time • TransacFon Response Time • TransacFon Error Count • Metric Overlay with
– Network Latency – Network Packet Loss
Screenshot here
Demo Splunk App for SyntheFc TransacFon Monitoring
16 16
Summary
17
! SyntheFc monitoring allows you to detect problems before your customers do
! Selenium is an open-‐source widely used automaFon tool ! Splunk App for SyntheFc Monitoring leverages the power of Selenium automaFon and Splunk as a machine data pladorm
! Combine the power of Splunk and syntheFc monitoring to have a broader view of your applicaFon performance and availability
THANK YOU