ABSYZ ABSYZ

  • Home

    Welcome to ABSYZ

  • About us

    Who We Are

  • Our Expertise

    What We Do

  • Our Approach

    How We Do It

  • Products

    What We Made

  • Industries

    Who We Do It For

  • Clients

    Whom We Did It For.

  • Article & Blogs

    What Experts Think

  • Careers

    Join The Team

  • Get In Touch

    Let’s Get Started

ABSYZ

Event Monitoring Series

Home / Article & Blogs / Salesforce / Event Monitoring Series

Event Monitoring Series

By Ashutosh Mishra inSalesforce

Event Monitoring Part -I

Visualise Data using Wave Analytics

This is the first part of Event Monitoring Series where you will learn about following things

  • Basics of Event Monitoring
  • How to download Event Log File using Event Log File Browser Application
  • How to create Dataset in Wave Analytics
  • How to Visualise data in Wave Analytics

Event Monitoring Basics

Event Monitoring is a new weapon in Salesforce Administrator’s arsenal to identify any abnormal behaviour and secure your company’s data.It logs user activity, called events, in detail. This feature provides customers an easy to download, file-based API to extract log data that can help with a customer’s troubleshooting, performance management, and security audits.

Event Monitoring can be used with 32 different types of events, including:

  • Logout
  • Login
  • Report Export
  • Salesforce1 Adoption (UI Tracking)
  • API calls
  • Visualforce
  • Apex Trigger etc.

All these events are stored in log files. Log file will be available to use after 24 hours of occurrence of an event. Log files are available based on CreatedDate for the last 30 days when organization purchase User Event Monitoring or one day for Developer Edition organization. All event monitoring logs are exposed to the API through the EventLogFile object, however there is no access through the user interface. Each log file represents one type of log events happened over one day.

Use Cases for Event Monitoring

  • Identifying Compromised Accounts – Monitoring the behaviour of each user account to identify a compromised account.
  • Monitor data loss by departing employees – Employees leaving company could take confidential data with them. Monitoring and taking against such actions is very important.
  • Performance optimization – Optimizing the performance visualforce pages etc.
  • Increased adoption – Observe how users from different departments of your organization are interacting with salesforce and evaluate their performance.

Let’s consider the first Use Case. Admin became suspicious of one particular user account. Now admin wants to check who else is using the account.One option is to find out the IP Addresses to get various locations from where the account is being accessed. Following steps will help admin to get his answers.

Downloading Event Log File using Browser Application

There are many ways to download Event Log Files in many ways, including:

  • Event Log File Browser Application
  • cURL script
  • Python script

In this blog we will use Browser Application

Steps
  1. Open Link :https://salesforce-elf.herokuapp.com
  2. Select either Production or Sandbox login and provide your credentialsScreen Shot 2016-05-12 at 10.17.49 pm.png
  3. Select date and event type and click ApplyScreen Shot 2016-05-12 at 10.23.13 pm.png
  4. Once you click Apply you will get table just like belowScreen Shot 2016-05-12 at 11.36.24 pm.png
  5. Click on the Green download icon to download the specific file. It  will be in .csv format.The other icon provides cURL shell script that can be used with cURL command line tool.

Now you have the Log File of the Login event. Lets use this log file to create some useful reports using Wave Analytics.

Wave Analytics

Wave Analytics is a powerful self-service analytics application. You need a Wave License to use Wave Analytics in your system. Wave Analytics provides option to integrate data from various sources to build useful insights to answer key questions of business users.

Steps to use Event Log File and create reports(Lenses) in Wave Analytics

Steps
  1. Login to the Org where Wave Analytics is installed.
  2. Click on create and select DatasetScreen Shot 2016-05-12 at 11.43.07 pm.png
  3. Select Data source as CSVScreen Shot 2016-05-13 at 12.04.25 am.png
  4. Add downloaded Event Log File in .csv format in “Add External Data File” section. A metadata JSON file will be created automatically. Enter Dataset Name and select the App(Folder) where you want to create the dataset. Click Create Dataset.Screen Shot 2016-05-13 at 12.09.16 am.png
  5.  Dataset as shown below will be created inside the selected App in previous step.Screen Shot 2016-05-13 at 12.12.23 am.png
  6. Click on the dataset to create Lens(Reports).Screen Shot 2016-05-13 at 12.47.01 am.png(The above report (Lens) was created by following steps                                                          i. Click on the Screen Shot 2016-05-13 at 1.04.59 am.png icon(last icon) to select Column graph.                                          ii. Click on the Screen Shot 2016-05-13 at 1.01.24 am.png icon to create a group by CLIENT_IP. )

In the above graph Admin observes that login happened several times from one particular ip address. Also this ip address does not belong to admin’s company. Now admin can further investigate the ip address.

In this way Wave Analytics can be used to provide more useful insights using data gathered from Event Log File.

Also you can use the below Bash Shell Script to automate the process of downloading event log file and uploading it in Wave Analytics to create a Dataset   https://github.com/atorman/elfBash/blob/master/elfWave_mac.sh .

In our next blog in the Event Monitoring Series we will explore querying EventLogFile object using REST API.

 

 

DashboardEvent MonitoringReportsSalesforce1Wave Analytics
50
Like this post
2 Posts
Ashutosh Mishra

Search Posts

Archives

Categories

Recent posts

Top 5 Factors to evaluate before choosing a Salesforce Integrator

Top 5 Factors to evaluate before choosing a Salesforce Integrator

Significance of UI/UX Design

Significance of UI/UX Design

Cyber-security in an uncertain world

Cyber-security in an uncertain world

The world of AR and VR

The world of AR and VR

The in-and-out of ML

The in-and-out of ML

  • Previous PostUpload files in Amazon S3 from Salesforce
  • Next PostCombining RESTful Web Services and Site.com for creating publicly asccessible URL

Related Posts

REST API call from Einstein Analytics Dashboard
Apex REST Salesforce Salesforce Einstein Wave Analytics

REST API call from Einstein Analytics Dashboard

Create/Update Salesforce Picklist definitions using metadata API
Integration Metadata API Salesforce

Create/Update Salesforce Picklist definitions using metadata API

Leave a Reply (Cancel reply)

Your email address will not be published. Required fields are marked *

*
*

ABSYZ Logo
  • Home
  • About us
  • Article & Blogs
  • Careers
  • Get In Touch
  • Our Expertise
  • Our Approach
  • Products
  • Industries
  • Clients
  • White Papers

ABSYZ Software Consulting Pvt. Ltd.
USA: 49197 Wixom Tech Dr, Wixom, MI 48393, USA
M: +1.415.364.8055

India: 6th Floor, SS Techpark, PSR Prime, DLF Cyber City, Gachibowli, Hyderabad, Telangana – 500032
M: +91 79979 66174

Copyright ©2020 Absyz Inc. All Rights Reserved.

youngsoft
Copy