Splunk Enterprise Security

Need changes to the datamodel search

AL3Z
Builder

Hi,

I aimed to merge the "dropped" and "blocked" values under the "IDS_Attacks.action" field in the output of the datamodel search and include their respective counts within the newly created "blocked" field.

so that I can add it to the dashboard.
output:

 


IDS_Attacks.action
count

allowed130016
blocked595
dropped1123
Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

I strongly advise against modifying datamodels that are not your own.  If you change a DM, your changes will override any future versions of the DM that may be released.

Instead, have your dashboard combine the values by changing "dropped" to "blocked".

| eval IDS_Attacks.action=if(IDS_Attacks.action="dropped","blocked",IDS_Attacks.action)

 

---
If this reply helps you, Karma would be appreciated.
0 Karma

AL3Z
Builder

Hi,

Why I'm not seeing the field IDS_Attacks.sourcetype field in the datamodel  ? 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I don't know why you're not seeing the sourcetype field.  Every event should have that field.

---
If this reply helps you, Karma would be appreciated.
0 Karma

AL3Z
Builder

May be the taging is not done it in a right way. Where we need to check further?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...