Getting Data In

How can I disable all data onboarding in an easy way for running tests?

sboogaar
Path Finder

I want to test if my ITSI kpi's are working as expected, im creating fake events, with collect, that should trigger the kpi. However the existing onboarding onboards data that avoids the trigger of the correct kpi state e.g.

I onboard my data at minute 1, minute 2 the real data is onboarded, minute 5 the kpi base search runs. it takes the last state and sees everything is correct.

How can i disable all data onboarding in an easy way for running tests?

Labels (1)
0 Karma

johnhuang
Motivator

Why don't you change the test searches to distinguish between real data and test data, and filter out the real data?

One way to do this is to insert a field and value into your test data to identify as such. 

0 Karma

sboogaar
Path Finder

@johnhuang How do you mean? e.g. add a search filter in each query to exclude events with a tests tag, and when running tests remove that filter? We have about 200 kpi's, so every time I want to run the KPI test I have to update all 200 searches?

0 Karma
Get Updates on the Splunk Community!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...