Getting Data In

How to filter by dimension and include names in mstats result?

bdjoulica
New Member

Hi All,

I am looking for a way to filter by dimensions and include their name in mstats result so that down the line I can have charts per metric and dimension. What is the way of referencing custom dimensions?

Regards,
Bartosz

0 Karma

effem
Communicator

I'm not really sure what you want to accomplish directly.
But if you use mstats like this:

| mstats latest(_value) AS last_value WHERE index="my_metrics" metric_name="*" by custom_dimension, metric_name

You are able to use metric_name as well as the custom_dimension field after this command. As well as metric_name and the values of all the metrics.
hope that helps.

p_gurav
Champion

Can you provide some sample data?

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...