Search This Blog

Friday, March 22, 2024

07_Splunk 9 Correlating Events with Transactions

 1 Course Overview

2 Understanding Transactions

2.1 Overview

2.2 What Are Transactions?

2.3 Demo: Setting up Your Splunk Environment

2.4 Demo: The Transaction Command

2.5 Identifying Transactions

2.6 Family of Correlation Searches

2.7 A Word of Caution

3 Using Transactions

3.1 Overview

3.2 Using Startswith and Endswith

3.3 Demo: Startswith and Endswith

3.4 Using Maxevents, Maxpause, and Maxspan

3.5 Using Rex to Extract Fields

3.6 Demo: Using Rex

3.7 Finding Unfinished Transactions

3.8 Demo: Finding Unfinished Transactions

4 Creating Reports and Dashboards from Transaction Results

4.1 Overview

4.2 Creating Reports

4.3 Creating Dashboards

4.4 Demo: Creating Reports

4.5 Demo: Creating Dashboards

5 Determining When to Use Transactions

5.1 Overview

5.2 Drawbacks of Transactions

5.3 Demo: Compare Transaction and Stats

5.4 Transaction vs. Join

5.5 When Transaction Is Not Possible


  1. Course Overview

  • Karun Subramanian – Splunk Certified Architect

https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Transaction


  • A group of rectangular boxes with text

Description automatically generated

A black background with white text

Description automatically generated



  1. Understanding Transactions

    1. Overview

A close-up of black text

Description automatically generated

  1. What Are Transactions?

A close-up of a white background

Description automatically generated

A screenshot of a white background

Description automatically generated


A group of rectangular boxes with text

Description automatically generated



  1. Demo: Setting up Your Splunk Environment

A screenshot of a computer

Description automatically generated

https://docs.splunk.com/Documentation/Splunk/9.2.0/SearchTutorial/Systemrequirements#Download_the_tutorial_data_files

https://docs.splunk.com/Documentation/Splunk/9.2.0/SearchTutorial/GetthetutorialdataintoSplunk

Download Prices.csv.zip, tutorialdata.zip files

Upload tutorialdata.zip

  • With index = pluralsight – rest of the items are defualt

  • Search

    • In fast mode filelds are not automatically extracted.  But in smart, verbose mode fields are automatically extracted.

    • So for transactions always we use Smart mode (verbose mode costly)

  • Create App for our knowledge object

    • ??? What is app and why we need even uploading file is available in search 


  • Click Gear Icon > Click “Create app” 

  • A screenshot of a computer

Description automatically generated

  • - here no file choose to upload

  • App “Globomantics” will be created

  • A computer screen with a black box and white text

Description automatically generated

  • Logo should be in app/name/static folder



  1. Demo: The Transaction Command

A screenshot of a computer program

Description automatically generated


JSESSIONID is generated by application server




  1. Identifying Transactions

A close-up of a sign

Description automatically generated

A white text on a white background

Description automatically generated


A diagram of a transaction

Description automatically generated with medium confidence


A screenshot of a computer

Description automatically generated

  1. Family of Correlation Searches

A blue background with white text

Description automatically generated


A group of squares with text

Description automatically generated


A white and orange text on a white background

Description automatically generated



  1. A Word of Caution

A white text with black text

Description automatically generated



  1. Using Transactions

    1. Overview

A white background with black text

Description automatically generated

  1. Using Startswith and Endswith


A white text on a black background

Description automatically generated


A screenshot of a computer program

Description automatically generated


A screenshot of a computer program

Description automatically generated


Within the transactions, the records will be in chronological order.


  1. Demo: Startswith and Endswith

index="_internal" sourcetype=splunkd


index="_internal" sourcetype=splunkd 

| transaction startswith="Splunkd starting"



index="_internal" sourcetype=splunkd 

| transaction startswith="Splunkd starting" maxevents=20



A screenshot of a computer

Description automatically generated


A screen shot of a computer code

Description automatically generated



  1. Using Maxevents, Maxpause, and Maxspan

A screenshot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated


A screenshot of a computer code

Description automatically generated


If 

  1. Using Rex to Extract Fields

To extract the fileds from events in search time

Extract fields in index time also by using propos.conf, and index.conf file

A white paper with black text

Description automatically generated


A screenshot of a computer program

Description automatically generated



  1. Demo: Using Rex

A screenshot of a computer

Description automatically generated

RESPONSETIME field is created, then we can use this field

Create field for user name

A screen shot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated


A white rectangular sign with black text

Description automatically generated


A screenshot of a computer

Description automatically generated




  1. Finding Unfinished Transactions

A screenshot of a white text

Description automatically generated


A screen shot of a computer

Description automatically generated



  1. Demo: Finding Unfinished Transactions

A screenshot of a computer

Description automatically generated

Ordered something but not finished



  1. Creating Reports and Dashboards from Transaction Results

    1. Overview

A white background with black text

Description automatically generated

  1. Creating Reports

A screenshot of a white background

Description automatically generated


A screenshot of a computer

Description automatically generated



  1. Creating Dashboards

A screenshot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated

A screenshot of a dashboard

Description automatically generated


A screenshot of a computer

Description automatically generated




  1. Demo: Creating Reports

A close up of a sign

Description automatically generated


A close-up of a computer screen

Description automatically generated

A screenshot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated


We can not see any SPL query in the dashboard.


A screenshot of a computer program

Description automatically generated


Better choose cron expression.

A screenshot of a computer

Description automatically generated


  1. Demo: Creating Dashboards

A screenshot of a computer

Description automatically generated


A screenshot of a computer

Description automatically generated


Add to dashboards

Export – schedule to deliver as PDF

A screenshot of a computer program

Description automatically generated



  1. Determining When to Use Transactions

    1. Overview

A white background with black text

Description automatically generated


  1. Drawbacks of Transactions

A screenshot of a computer

Description automatically generated


A screen shot of a white background

Description automatically generated


A screenshot of a computer

Description automatically generated

In transaction duration automatically created but in stats we define



  1. Demo: Compare Transaction and Stats

A screenshot of a computer

Description automatically generated

The same result we can get it from stats command

A screenshot of a computer

Description automatically generated

  1. Transaction vs. Join

A screenshot of a web page

Description automatically generated

A blue background with white text

Description automatically generated


  1. When Transaction Is Not Possible

A diagram of a timeline

Description automatically generated with medium confidence


No comments:

Post a Comment