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!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...