Splunk ITSI

Services Cannot Entity Filter by Anything Other than Alias?

eddieddieddie
Path Finder

I'm back to creating services in ITSI and finding that using something other than an alias in an Entity Filter Field does not work.

For example: I create a new Service to look at IIS logs. As the server hosts multiple sites my service contains two entity rules: (the entity has been setup with the server name as alias and a 'site' info tag listing all it's sites - separated by commas). So I can filter the service like so:

eddieddieddie_0-1686702819502.png

Then I went on to create a KPI which tries to count the number of 400 errors in the IIS logs, via an Ad Hoc Search:
eventtype=microsoft_iis_web host=server1 | eval 4xx_error=if(status>=400 AND status<500, status, null())

I then attempt to 'split by entity' - 'uri_path' (which is a field the above search query will return) and Filter by Entities in Service by setting the Entity Filter Field to 'site':

eddieddieddie_1-1686703103405.png

This never finds anything! However if I filter by host it does work. If I open the Generated Search and run just the 'generate_entity_filter' search this always returns `no_entities_matched` unless the Entity Filter Field is configured to host (which is the entities alias).

Am I coming up against a bug here (I am using an ancient version of ITSI)? Or is this by design? Or am I doing something wrong?

Thanks!

Labels (1)
Tags (1)
0 Karma

srauhala_splunk
Splunk Employee
Splunk Employee

Hi!

 

Yes that's the correct behaviour imo. You could split by uri_path using pseudo entities but not use the entity filter on these. 

To use the entity filters I would suggest to create new entities with aliases based on your data. For example:

 

entity_title: uri_path
uri_path: "splunk.com/home"
site: "splunk"
env: "prod"
is_active: "1"
etc 

 

 

Note that if you have 50K results from you KPI base search you can hit some default limits. 

 

/Seb 

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...