Deployment Architecture

Serverclass using CSV

Murali_Tesco
Engager

Hi All,

I have a case where we want to Whitelist servers using a CSV or  TXT file,

I tried creating a simple CSV and tried to push the app with no joy, have been trying to look around for any example implementation using the same and i was not able to find any.

Could some body help me.

For testing i am using

[serverClass:test4]
filterType = whitelist
whitelist.from_pathname =/opt/splunk/etc/system/local/test.txt
[serverClass:test4:app:test4]

Thanks in advance

M

Labels (1)
0 Karma
1 Solution

Murali_Tesco
Engager

@manjunathmeti ,

 

Thank you for getting back to me, I figured where I was making the mistake.

Because I was giving the full path /opt/splunk/etc/system/local/test.txt, Splunk also adds $SPLUNK_HOME and then it was giving an error stating no such file exist

Then I changed it to etc/system/local/test.txt then it started to work.

Thank you again.

View solution in original post

0 Karma

manjunathmeti
Champion

1. Your txt file should contain one <clientName>, <IP address>, or <hostname> is given per line. 

printer.splunk.com
scanner.splunk.com
*.web.splunk.com
test.splunk.com

 

2. Did you restarted splunk once you made changes in /opt/splunk/etc/system/local/serverclass.conf file?

3. Make sure deploymentclient.conf is created in $SPLUNK_HOME/etc/system/local/ in clients with deployment server details.

4. Check if deployment clients and apps are listed in Forwarder Management in the deployment server.

 

If this reply helps you, an upvote/like would be appreciated.

0 Karma

Murali_Tesco
Engager

@manjunathmeti ,

 

Thank you for getting back to me, I figured where I was making the mistake.

Because I was giving the full path /opt/splunk/etc/system/local/test.txt, Splunk also adds $SPLUNK_HOME and then it was giving an error stating no such file exist

Then I changed it to etc/system/local/test.txt then it started to work.

Thank you again.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...