Splunk Search

How do I search VMware custom attributes?

hark
New Member

We have defined several custom attributes in vCenter that I would like to search on. For example, we have defined a custom attribute as "App" that contains a variety of strings. How can I search on that object looking for a specific string?

Tags (3)
0 Karma
1 Solution

Richfez
SplunkTrust
SplunkTrust

I presume by "custom attribute" you mean that you have a defined a field (called 'App') that shows up in your regular search results. If that's not the case, this answer is completely wrong. 🙂

So, if you want to search for a string in a field named App, you might....

...  App="mysearchstring"

You might need App="mysearchstring*" or even App="*mysearchstring*" depending on how your string is delimited in the event but please try not to not use the wildcards if you don't need them - it'll be way faster without them, or at least without a leading wildcard.

... is just whatever else in the search string you need to bring up the big old pile of results, some of which have App equal to that string you want. Like, source=vmware or sourcetype=vmware or whatever that is.

Here's a handy set of docs to help get started.

View solution in original post

0 Karma

Richfez
SplunkTrust
SplunkTrust

I presume by "custom attribute" you mean that you have a defined a field (called 'App') that shows up in your regular search results. If that's not the case, this answer is completely wrong. 🙂

So, if you want to search for a string in a field named App, you might....

...  App="mysearchstring"

You might need App="mysearchstring*" or even App="*mysearchstring*" depending on how your string is delimited in the event but please try not to not use the wildcards if you don't need them - it'll be way faster without them, or at least without a leading wildcard.

... is just whatever else in the search string you need to bring up the big old pile of results, some of which have App equal to that string you want. Like, source=vmware or sourcetype=vmware or whatever that is.

Here's a handy set of docs to help get started.

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk Enterprise 9.4: Tools for Digital Resilience

What’s New in Splunk Enterprise 9.4: Tools for Digital ResilienceTune in to What’s New in Splunk Enterprise ...

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...