Sumo Logic quickStart Webinar June 2016

47
Sumo Logic Confidential QuickStart Webinar Getting Started with Sumo Logic Mario Sánchez June 2016 Welcome. To give everyone a chance to successfully connect, we’ll start at 10:05 AM Pacific.

Transcript of Sumo Logic quickStart Webinar June 2016

Page 1: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

QuickStart WebinarGetting Started with Sumo Logic

Mario Sánchez

June 2016

Welcome.

To give everyone a

chance to successfully

connect, we’ll start at

10:05 AM Pacific.

Page 2: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

At the completion of this webinar, you will be able to…

Understand Data Collection (Admin Topic)

Search, Parse and Analyze Data

Visualize and Monitor through Dashboards & Alerts

Take advantage of the Library and Apps

Understand Optimization Tools (Admin Topic)

Page 3: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

What is Sumo Logic?

Page 4: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Continuous Intelligence

DEVOPS IT INFRASTRUCTURE

AND OPERATIONS

COMPLIANCE AND

SECURITY

DEVOPS

Streamline continuous delivery

Monitor KPI’s and Metrics

Accelerate Troubleshooting

IT INFRASTRUCTURE

AND OPERATIONS

Monitor all workloads

Troubleshoot and increase uptime

Simplify, Modernize, and save costs

COMPLIANCE AND

SECURITY

Automate and

demonstrate compliance

Audit all systems

Think beyond rules

Sumo Logic Cloud Analytics Service

Page 5: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

sumologic.com/compliance

Page 6: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Enterprise Logs are Everywhere

Custom App

Code

Server / OS

Virtual

Databases

Network

Open

Source

Middleware

Content

Delivery

IaaS,

PaaSSaaS Security

Page 7: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

High-Level Data Flow

Page 8: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Sumo Logic Data Flow

Data Collection Search & Analyze Visualize & Monitor

Alerts

Dashboards

Collectors

Sources

Operators

Detect

1 2 3

Page 9: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Data Collection

Page 10: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Host A

Collectors and Sources

Apache Access

Apache Error

Collector

AHost B

Collector

BHost C

Collector

C

Apache Access

Apache Error

IIS Logs

IIS W3C Logs

Page 11: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Metadata Fields

Name Description

_collector Name of the collector this data came from

_source Name of the source this data came through

_sourceHost Hostname of the server this data came from

_sourceName Name of the log file (including path)

_sourceCategor

y

Category designation of source data

Tags added to your messages when data is collected

Host A

Apache Access

Apache Error

Collector

A

Page 12: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Host A

Metadata Field: Source Category

Apache Access

_sourceCategory =

WS/Apache/Access

Apache Error

_sourceCategory =

WS/Apache/Error

Collector

AHost B

Collector

BHost C

Collector

C

Apache Access

_sourceCategory =

WS/Apache/Access

Apache Error

_sourceCategory =

WS/Apache/Error

IIS Logs

_sourceCategory =

WS/IIS

IIS W3C Logs

_sourceCategory =

WS/IIS/W3C

Sample Searches for

_sourceCategory:

= WS/Apache/Access

= WS/Apache/*

= WS/*

Page 13: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Source Category Naming Convention

Simplifies Search Syntax and Scope Definitions

Used for other Sumo Logic features

Role-Based Access Control (Data Provisioning)

Partitioning (Search Optimization Tool)

Adopt a Robust Naming Convention Early

Ex: Prod/Sumo/Apache/Access Env/Customer/Device/MessageType

Ex: OS/Windows/2012/Messages Device/Vendor/Version/MessageType

Blog Post: Good SourceCategory, Bad SourceCategory

Page 14: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Search and Analyze

Page 15: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Set your

Preferences

Set your Session

Timeout

Query Editing

versus Running

Page 16: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Search Basics OverviewTime Range

Histogram

Search Bar

Search Results

Display Options

Page 17: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Field Browser - Metadata fields

Sumo Logic Confidential

Field Browser

Metadata Fields

Parsed Fields

Page 18: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Search Structure

Keywords and operators (separated by pipes) that build on top of each other

Syntax:

metadata tags + keywords | parse | filter | aggregate | sort | limit

Example Search:

Results

where

metadata

keyword

Page 19: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Keyword Search

Case Insensitive

Wildcard Support (e.g. ERR*)

Boolean Logic Support

AND

OR

!(A OR B)

Combine these keywords with metadata fields

Bloom filters

Using keywords helps bloom filters locate data very quickly

Page 20: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Determine the data available through your search.

• Pre-populated Dropdown

– Last 15 min, Today

• Absolute

– 12:25PM 12:30PM

– 8/11/2015 13:00AM 8/11/2015 14:00AM

• Relative

– -5m

– -2h

– -2d -1d

Time Range

Page 21: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Develop Good Search Habits

Use metadata and keyword combinations to reduce scope

Add line breaks after each operation

Limit result sets before aggregating data user=a | count by user

Use parse anchor instead of parse regex for structured messages

Avoid the use of expensive parse regex tokens like .* \d{2,10}

Narrow your time-range down as much as possible

Page 22: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Refining Results by Surrounding Messages

Page 23: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• LogReduce uses fuzzy logic and soft matching to cluster messages providing quick

investigation view into your environment.

Operators: Looking for the Unknown

Page 24: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Identify unexpectedly high or low values within determined thresholds

|timeslice 1m

|count by _timeslice

|outlier _count

Operators: Finding Outliers

Page 25: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Parsing enables a user to extract parts of a message and classify them as

fields.

– Enables you to perform additional operations

• Logical/conditional – based on values

• Mathematical – operations on value sets

• Parsing Options

– parse anchor: Leverages beginning and ending anchors

– parse regex: Extracts nested information via regex

Extracting and Labeling Additional Fields

Page 26: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Parse Anchor - Using the UI

Highlighting

strings in the

result allow

you to launch

the UI parserUI Parser allows

you to select fields

and label them

Results now show

your parsed fields

Page 27: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Extracts nested information via regular expressions

• Use if the construct of the messages is inconsistent

_sourceCategory=Apache/Access

| parse regex "[A-Z]+\s(?<url>/\S*)\sHTTP/1.\d+\"\s(?<status_code>\d+)\s"

Parse Regex

Page 28: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Regular Expressions – References and Resources

Regular Expressions use JRE

Online Resources:

• regex101.com

• Regular-expressions.info/refadv.html

• en.wikipedia.org/wiki/Regular_expression

• regexr.com

• Book

– Mastering Regular Expressions by Jeffrey E.F. Friedl

Page 29: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Evaluates messages and places them into groups

• Produces aggregates in a separate tab

• Must come after basic operators such as parse. Cannot be used with summarize.

• The count Operator enables you to group messages that match a classification

– Ex: _sourceCategory=Apache* | count as mycount

– Ex: GET | count by _sourceCategory

Grouping your Data

Page 30: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Dissecting your result sets using Metadata Fields

– Ability to aggregate results sets and grouping them by metadata fields

• EX: _collector=*apache* | count by _sourceCategory

– Get a count of grouped result sets

• Ex: (Error OR fail*)| count by _sourcecategory , _sourcehost

– Organize Results by Count

• Ex: _collector=*apache*| count by _sourceCategory | sort by _count

Leveraging Metadata for Grouping

Page 31: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Timeslice operator enables you to segment your

results by time buckets

– Minute (timeslice by 5m)

– Hour (timeslice by 1h)

– Day (timeslice by 1d)

Example:

_sourceCategory=Apache/Access GET

|timeslice 1m

| count by _timeslice

| sort by _timeslice asc

Time-based Grouping

Page 32: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Visualize and Monitor

Page 33: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Collection of Panels that

provide graphical

representation of data

• Each Panel processes results

of a single search

• Additional Analysis: Drilldown

into corresponding query or

another Dashboard

Intro to Dashboards

Page 34: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Chart Types

– Table

– Bar

– Column

– Line

– Area

– Pie

– Box Plot

– Google Maps

– Single Value

Providing Context through Visualization

Page 35: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Live Mode

– Provides a live stream of data

– No Back filling of data

Dashboard Features

Toggle Live

Mode

Page 36: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Live versus Interactive Mode

Use Case Examples Dashboard

Type

Large screen displays

with streaming updates

Shared Screens for NOC,

Operations, Developers.

Live Mode

Template for Exploring

Data

Operational Investigations (i.e. Root

cause analysis)

Interactive

Mode

Historical Reporting

and Investigation

Audits, Failed/successful logins for

certain groups

Interactive

Mode

Page 37: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Search based (On-Demand)

• Backfilling of data

• Support Filtering

Dashboard Features

Select Time

Range for all

PanelsAbility to use

Pre-defined

filters

Select filters for

individual panels

Select time range

for individual

panels

Page 38: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

• Filters allow for panels results to be limited dynamically

• Filters can be assigned at:

– Dashboard level, Panel Level or both

• Filters can be string based or numeric

– The * wildcard is supported for non-numeric filters

– Numeric comparison operators supported: >,<,>=,<=

Filtering Details

Page 39: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Dashboards - Adding a Panel

1. Perform your

Search

2. Format your

Results

3. Create a

Panel

Page 40: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Alerting – Scheduled Searches

Using a Scheduled Search, you can set Alerts to trigger whenever the search

completes or when a certain condition is met.

Alert types include:

• Save to Index

• Script Action

• Email

• Webhooks

Blog Post: 2 Key Principles for Creating Meaningful Alerts

Page 41: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Saving and Scheduling an Alert

1. Save your Search

2. Schedule the

Search

3. Specify frequency and time

range

4. Specify Alert condition &

threshold

5. Specify Alert Type and details

Page 42: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Jumpstart with Apps

Page 43: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Installing Applications

Page 44: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Optimizing Your Search

Experience

Page 45: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Search Optimization Tools

How-To Webinar Recording: https://youtu.be/JNWbtws-sns

Partitions

Index data for searching over a smaller data set

Scheduled Views

Pre-aggregating data for fast counts/sums over longer time ranges

Field Extraction Rules

Parse the data on ingest rather than run-time; simplifies searches

Take advantage of interactive dashboard filters

Page 46: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Questions?

Consume Training

sumologic.com/training

Read Documentation

help.sumologic.com

Search/Post to Community

community.sumologic.com

Open a Support Case

support.sumologic.com

Log a Feature Request

sumologic.ideas.aha.io/ideas

Page 47: Sumo Logic quickStart Webinar June 2016

Sumo Logic Confidential

Thank you!