Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #264 from guilhemmarchand/testing
Browse files Browse the repository at this point in the history
Version 1.2.35
  • Loading branch information
guilhemmarchand committed Feb 24, 2021
2 parents 2d25f21 + 6bfb374 commit 5b2e1eb
Show file tree
Hide file tree
Showing 41 changed files with 4,085 additions and 283 deletions.
125 changes: 125 additions & 0 deletions docs/cribl_integration.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
Cribl and TrackMe integration
=============================

.. image:: img/cribl/cribl_logo.png
:alt: cribl_logo.png
:align: center
:width: 196px

**If you are using Cribl, you can easily integrate TrackMe in a just a few steps, using the excellent native Cribl design, TrackMe will take into account the concept of Cribl pipelines to create, monitor and render the data sources automatically.**

*In a nutshell:*

- A configuration parameter is available in TrackMe to enable the Cribl mode
- Once activated, the Cribl mode updates the way TrackMe is identifying and breaking the data sources
- To achieve this, TrackMe relies on the **crible_pipe** indexed field automatically created by Cribl when data is indexed in Splunk
- Related searches transparenly use the **crible_pipe** information, that accurately represents the data pipeline as it should be monitored, from Cribl to Splunk

Enable the Cribl mode
---------------------

**To enable the Cribl mode, go in "TrackMe manage and configure" and click on the enable Cribl mode:**

.. image:: img/cribl/enable_cribl_mode.png
:alt: enable_cribl_mode.png
:align: center
:width: 1200px

**Once the Cribl mode is enabled, perform a reset of the data source collection:**

.. image:: img/cribl/cribl_reset_collection.png
:alt: cribl_reset_collection.png
:align: center
:width: 1200px

Cribl mode data sources
-----------------------

**Let's assume the following simple scenario:**

- Cribl receives incoming data from any kind of sources, and streams to Splunk with associated pipelines
- In our example, we instruct Cribl to index data in Splunk into a few indexes, but we have many more pipelines since we perform various operations on Cribl, indexes and sourcetypes are likely fed by much more than just one pipeline
- In regular TrackMe mode, TrackMe would represent the data sources broken by indexes and sourcetypes, however, this does not represent what the incoming data flow is underneath, and does not provide the valuable information and monitoring layer we need
- Once we enable the Cribl mode, TrackMe relies on the ``cribl_pipe`` pipeline information to properly distinguish the real data flow as it is from the data provider (Cribl) perspective

*Cribl pipeline examples:*

.. image:: img/cribl/cribl_pipelines.png
:alt: cribl_pipelines.png
:align: center
:width: 1200px

*In this example, the default TrackMe mode has different issues, we stream data to an index called "network", however we have different pipelines that are potentially linked to multiple sources and from the Cribl point of view could be affected independently in case of an issue or misconfiguration:*

.. image:: img/cribl/cribl_trackme1.png
:alt: cribl_trackme1.png
:align: center
:width: 1200px

*Once we enable the Cribl mode, we see a very different picture, TrackMe automatically creates data sources broken by index, sourcetype and cribl_pipe:*

.. image:: img/cribl/cribl_trackme2.png
:alt: cribl_trackme2.png
:align: center
:width: 1200px

Data sources are created as ``index + ":" + sourcetype + ":" + cribl_pipe``, this represents the data flow from Cirbl to Splunk.

Every search actioned by trackMe now automatically recycles the cribl_pipe information naturally, such as latency tracking, data sampling, open in search buttons, etc:

.. image:: img/cribl/cribl_trackme3.png
:alt: cribl_trackme3.png
:align: center
:width: 1200px

.. image:: img/cribl/cribl_trackme4.png
:alt: cribl_trackme4.png
:align: center
:width: 1200px

.. image:: img/cribl/cribl_trackme5.png
:alt: cribl_trackme5.png
:align: center
:width: 1200px

Cribl pre-processing pipelines and cribl_pipe field
---------------------------------------------------

If you have a proprocessing pipelines in your Cribl workflow, the ``cribl_pipe`` field becomes a multi-value indexed field that contains both the processing pipeline and pre-processing pipeline:

.. image:: img/cribl/cribl_preprocessing_pipeline.png
:alt: cribl_preprocessing_pipeline.png
:align: center
:width: 1200px

.. image:: img/cribl/cribl_preprocessing_pipeline1.png
:alt: cribl_preprocessing_pipeline1.png
:align: center
:width: 1200px

In the TrackMe context, this means that for the same data source, we get at least two entities, one per pipeline and one for the pre-processing pipeline:

.. image:: img/cribl/cribl_preprocessing_pipeline2.png
:alt: cribl_preprocessing_pipeline2.png
:align: center
:width: 1200px

From the TrackMe point of view, the pre-processing pipeline view has no value and all that we care about is the data flow itself, to get rid of these entities automatically, we can add a data_name blocklist based in a very simple regular expression:

- from the main TrackMe screen, go to "Manage: allowlists & blocklists"
- add a new data_name blocklist according to the name of your pre-processing pipeline, in our case we will use ``.*cribl:splunk_reduce_metadata``
- once it has been added, existing entities are not taken into account anymore, and if new data sources are discovered, these will exclude the pre-processing pipeline automatically

.. image:: img/cribl/cribl_preprocessing_pipeline3.png
:alt: cribl_preprocessing_pipeline3.png
:align: center
:width: 700px

.. image:: img/cribl/cribl_preprocessing_pipeline4.png
:alt: cribl_preprocessing_pipeline4.png
:align: center
:width: 1200px

Congratulations!

You have a now a comprehensive integration between the wonderful and amazing Cribl and TrackMe allowing you to track your Splunk data the easy way!
Binary file modified docs/img/allowlist_and_blocklist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_pipelines.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_preprocessing_pipeline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_preprocessing_pipeline1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_preprocessing_pipeline3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_preprocessing_pipeline4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_reset_collection.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_trackme1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_trackme2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_trackme3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_trackme4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/cribl_trackme5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/cribl/enable_cribl_mode.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/data_sampling_obfuscate.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/data_sampling_obfuscate2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/data_sampling_obfuscate3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ User guide:

userguide
itsi_integration
cribl_integration
rest_api_reference

Troubleshoot:
Expand Down
29 changes: 29 additions & 0 deletions docs/releasenotes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
Release notes
#############

Version 1.2.35
==============

**CAUTION:**

This is a new main release branch, TrackMe 1.2.x requires the deployment of the following dependencies:

- Semicircle Donut Chart Viz, Splunk Base: https://splunkbase.splunk.com/app/4378
- Splunk Machine Learning Toolkit, Splunk Base: https://splunkbase.splunk.com/app/2890
- Splunk Timeline - Custom Visualization, Splunk Base: https://splunkbase.splunk.com/app/3120

TrackMe requires a summary index (defaults to trackme_summary) and a metric index (defaults to trackme_metrics):
https://trackme.readthedocs.io/en/latest/configuration.html

- Feature - Issue #249 - CRIBL native integration - TrackMe can now be configured to be transparently reliying on the Cribl pipeline concept to discover and track data sources based on the cirbl_pipe to provide an easy and performing integration
- Feature - Issue #250 - new blocklisting capabilities based on the data_name for data sources
- Feature - Issue #254 - Data Sampling - The new Data Sampling obfuscation mode allows preventing unwanted data accesses to the collection by obfuscating samples at the processing step instead of storing samples within the KVstore collection
- Feature - Issue #253 - Splunk Infrastructure Monitoring, Splunk instances are now monitored automatically in the data hosts tracking via the splunkd sourcetype, this behaviour can be enabled/disabled on demand via the configuration UI
- Feature - Issue #260 - REST API endpoints - new endpoints for identity cards management
- Enhancement - Issue #251 - Reset collections should better run short term trackers rather than long term trackers for data sources and hosts when resetting
- Enhancement - Issue #257 - Allow listing - provides explicit expression addition capabilities with wildcard support
- Enhancement - Issue #258 - Metric hosts - adds the _metrics in hosts and metrics discovery
- Enhancement - Issue #259 - Lagging performances tab - Improve rendering and analytics
- Enhancement - Issue #263 - Default priority taken into account by OOTB alerts should rather filter for high priority by default (macro: trackme_alerts_priority)
- Fix - Issue #245 - SLA & QOS - Inconsistency in the calculations using stats range function, replaced with a streamstats based approach for accurate calculations
- Fix - Issue #246 - Data sources - misleading status message for data sources ingesting data in the future due to bad TZ
- Fix - Issue #256 - host blocking list based on regex does not work properly
- Fix - Issue #261 - SLA reporting should honour allow and block lists for each category

Version 1.2.34
==============

Expand Down

0 comments on commit 5b2e1eb

Please sign in to comment.