icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Event Masker
SHA256 checksum (event-masker_2181.tgz) 881d9b9ce61ec3904d238318d1cf3d8bee4a16fd331791de341a44de1bd9dd7a SHA256 checksum (event-masker_2141.tgz) 42b5a23bd2319738f7957e980dc63af4830911fcb11feebbd2f78e9d4d9f7c6a
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

splunk

Event Masker

Overview
Details
Event Masker provides filtering functionalities in Splunk, thereby permitting you to whitelist the events of your choice. Even though you can use Event Masker on any dashboard or query in the Splunk search bar, it was primarily built to reduce the number of false positives in Splunk Enterprise Security by better controlling its notable events.

Event Masker

This App provides filtering logic (whitelisting) for events in Splunk. It has been originally
developped to migrate from Alert Manager Suppression rule (https://github.com/alertmanager/alert_manager) to Splunk Enterprise Security and not losing the whitelisting work that has been done previously, but you can use Event Masker on every dashboard or query in Splunk search bar.

Event Masker consists in multiple components:

  1. A custom search command (mask). The command take three arguments :
  2. the scope of the mask rule, the scope on the command must match the scope defined in the Event Masker Rules
  3. the log argument (true/t or false/f) that specifies whether to log or not the masking made by the command. It is true by default.
  4. the timefield argument used only when you set a startDate and endDate to mask events on a specific timerange.
  5. A kv store lookup that contains the masking rules
  6. A masking rules editor
  7. Audit logs to track events that were masked by the command. These logs are pushed daily from the _internal index
    to the _audit index with the help of a scheduled report (mask_command_logs_audit) to benefit from a longer
    retention.
  8. Dashboards to audit the masking and check the masking rules
  9. A workflow action from Enterprise Security to facilitate whitelisting from a notable. It will extract fields from the notable raw in order to fill Event Masker form.

For documentation, see https://github.com/scrt/event_masker

We also published articles about Event Masker and its features on our blog, see https://blog.scrt.ch/category/analytics-2/

Configuring Splunk

Install this app into Splunk Searh Head (standalone) by doing the following:

  1. Log in to Splunk Web and navigate to "Apps » Manage Apps" via the app dropdown at the top left of Splunk's user
    interface
  2. Click the "install app from file" button
  3. Upload the file by clicking "Choose file" and selecting the app
  4. Click upload

When update this app, please restart Splunk. Some time, you need to refresh Splunk cache (https://<your_splunk_url>/en-US/_bump)

Command usage

Once the app is installed, you can open "Event Masker" app from the main launcher. You need to create at least 1 rule to use it.

Once the masking rule has been created, just add the following command at the very end of the Splunk Savedsearch/Correlation search. Transforming command must be used at the left of this command.

index=<index> | table <field1>, <field2> | mask scope=<the_scope_of_the_created_masking_rule>

If you have set startDate and endDate fields, you must set timefield option. You should write the name of your time field with the format %Y-%m-%d %H:%M:%S.%f.

Example :

index=<index> | table <field1>, <field2>, _time_ | eval _time=strftime(_time,"%Y-%m-%d %H:%M:%S.%f") |mask scope=<the_scope_of_the_created_masking_rule> timefield="_time"

The search will be launched and if everything is correct, the events that were to be masking should not appear in the set of results.

To check that the masking rule and the search have been correctly implemented, go to the Event Masker Logs
dashboard.

You have to know : If conditions, validity perriod or error occurs, Event Masker return splunk search without modification.

Usage information

By default, you need to be Splunk Admin (admin group) or Enterprise Security Admin (ess_admin group) to see Event Masker and make modifications on rules. To give read-only capabilities to a specific user, you have to add it in Enterprise Security Analyst or User groups (ess_analyst or ess_user).
To ensure that application logging works as expected, the groups mentioned previously (admin and ess_admin) needs to have the right to write in _internal index. This capability will provide logs regarding modifications made by users on Event Masker rules.

In Event Masker Rules list (default page):
Add rule need at least title and scope
Renaming a rule has no impact in mask command
To use multiple rule as the same time, you can use the same scope as another rule and use it in mask command
AND rule need at least 2 conditions
To edit a rule, click on title field
"Start Date" and "End date" are available to filter your events with a specific timerange. You must use timefield option to do that. If you not set these fields, your rule will mask events all the time.
* Import file must have the following JSON format :

   [
    {
      "title": "rule1",
      "description": "description1",
      "type": "normal",
      "match_type": "any",
      "scope": "scope1",
      "comment": "comment1",
      "startDate": "2021-04-01T16:00",
      "endDate": "2021-07-14T15:59",
      "modificationDate": "2021-04-30T15:57",
      "modificationUser": "admin",
      "creationDate": "2021-04-30T15:56",
      "disabled": false,
      "creationUser": "admin",
      "conditions": [
        {
          "field": "condition1",
          "operator": "is",
          "value": "value1",
          "iscasesensitive": true,
          "comment": "My comment on my condition"
        }
      ]
    },
    {
      "title": "rule2",
      "description": "description2",
      "type": "normal",
      "match_type": "all",
      "scope": "scope2",
      "comment": "comment2",
      "startDate": "",
      "endDate": "",
      "modificationDate": "2021-04-30T15:58",
      "modificationUser": "admin",
      "creationDate": "2021-04-30T15:58",
      "disabled": false,
      "creationUser": "admin",
      "conditions": [
        {
          "field": "condition2",
          "operator": "ends with",
          "value": "value2",
          "iscasesensitive": false,
          "comment": "My comment on my condition"
        },
        {
          "field": "condition2",
          "operator": "starts with",
          "value": "value2",
          "iscasesensitive": false,
          "comment": "My comment on my condition"
        }
      ]
    }
  ]

Do not forget that fields title, scope and match_type are mandatory (and conditions, of course)

In Event Masker rule editor (edit conditions):
Right click on the table displays a context menu that enables you to add/delete a row or copy/paste data. You can also save as CSV the table and order data by headers.
Values can be copied from splunk search result and pasted in the table bellow. This add row automatically.
Use "fieldname" (without quotes) to refer to a field from results
By default, values are case insensitive

Do not forget : All of the conditions must be true for a valid application. Make sure it works by testing your rules (for example : search * | table myfield | mask scope="rule scope")

Known Limitations

  • Splunk multi-value (MV) field are supported by Event Masker but at this time, masking rule hide the whole line when conditions are matched.

  • Search Head Cluster have not been tested.

  • It is possible that importing and exporting takes time and freeze the browser. This will be patched in a future version but for now, take the opportunity to have a coffee :coffee:

  • Event Masker has not been tested yet with the new version of Splunk Enterprise Security (6.6.0)

Getting Support

Go to the following website if you need support:

 http://answers.splunk.com/

You can access to the source-code and get technical details about the app at:

 https://github.com/scrt/event_masker/

Feel free to create issues and/or pull requests on the repo !

Credits

Many thanks to:

External Lib

This project use external lib under MIT Licence to works :
DataTables and Select/Buttons extensions
Jexcel (Jspreadsheet CE)
Jsuites
Text.js

Thanks to the developers of these libs.

Licence

This project is protected by CC BY-NC 4.0.

Release Notes

Version 21.8.1
Aug. 19, 2021

New features :

  • Review validity period
  • Enterprise security integration
  • Lookup for rule type
  • Comment for each conditions
  • Logs for rule modifications

Enhancements :

  • Mask command logging improvement
  • Enhance dashboards
  • Add ess roles in default permission
  • Remove actions buttons from search
  • Add column visibility preference
  • Check regex before save
  • Check rule type before save
  • Check values when comparison operators was selected
  • Update external libs
  • Unification of the forms into a single form

Bugfix :

  • Fix select checkbox requirement
  • Fix paste data with quote
Version 21.4.1
May 19, 2021
9
Installs
80
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
Splunk, Splunk>,Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names,product names,or trademarks belong to their respective owners.