Getting Data In

Grouping hosts for serverclass.conf

putnamblake
Path Finder

Hi all,

I have a general question on saving some space and grouping hosts in serverclass.conf. I have reviewed This from 2012, but doesn't exactly cover what I'm looking for and I am aware of the answer supplied. I'm wondering if the same applies to the below for grouping hosts.

Example:
whitelist.0 = host10
whitelist.1 = host11

Question:
whitelist.0 = host1[0-1]

Thanks in advance,

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Yes, you can use regular expressions in whitelist and blacklist settings.
Why are you worried about saving space? serverclass.conf typically is not that large.

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

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Yes, you can use regular expressions in whitelist and blacklist settings.
Why are you worried about saving space? serverclass.conf typically is not that large.

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

putnamblake
Path Finder

There is about 400+ entries under this particular stanza, any which way I can save some space for easy reading or visibility is a win.

To be clear, I was aware I could do host01.....05 as host0[1-5]
However, was not certain of host10...15 as host1[0-5]

Was able to test and confirm- Thanks for the help!

0 Karma

putnamblake
Path Finder

I have implemented this 30m ago and it does work as intended. If there is a range of hosts (EG: host01-host20) and you only need inputs from host10 and host 11, then the below works.

whitelist.0 = host1[0-1]

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If your problem is resolved, please accept an answer to help future readers.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...