All Apps and Add-ons

Can I add website monitors directly to config file instead of using interface?

cmahan
Path Finder

I have over a hundred servers I want to monitor and using the manager to add them is exhausting. I would like to be able to make a text file and paste it into a config somewhere. Is there a proper way to do that? I did something like that on the server i am replacing, but it had some issues with random stopping and the counter on the page saying there were only 30 even though the rest were showing...

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi cmahan,

sure, you can create an inputs.conf in $SPLUNK_HOME/etc/apps/website_monitoring/local with this content:

[web_ping://Answers]
interval = 1m
title = splunk.com
url = http://answers.splunk.com
disabled = 1

[web_ping://Google]
interval = 1m
title = google.co.nz
url = https://maps.google.co.nz
disabled = 1

and it will work the same way as if you would have added them in the UI.

Hope this helps ...

cheers, MuS

View solution in original post

0 Karma

Jarohnimo
Builder

Deployment server isn't an option?

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi cmahan,

sure, you can create an inputs.conf in $SPLUNK_HOME/etc/apps/website_monitoring/local with this content:

[web_ping://Answers]
interval = 1m
title = splunk.com
url = http://answers.splunk.com
disabled = 1

[web_ping://Google]
interval = 1m
title = google.co.nz
url = https://maps.google.co.nz
disabled = 1

and it will work the same way as if you would have added them in the UI.

Hope this helps ...

cheers, MuS

0 Karma

swayam_phani
New Member

Hello, Where can we give bulk url inputs from in conf files?

0 Karma

LukeMurphey
Champion

I added the ability to batch create inputs in version 1.6. It isn't the default version yet so you will need to manually select it. Let me know if this works for you.

0 Karma

atari1050
Path Finder

Nevermind. Found it! Thanks for adding this!!

0 Karma

atari1050
Path Finder

HI Luke-
How do we manually select it? I still have 300 more URLs to enter! 🙂
Thanks.

0 Karma

cmahan
Path Finder

Thanks! Seems to work. A couple odd points to mention... The Data inputs page only shows 30 inputs for the website availability monitor, even though when i click into it I have 148 Items. Also, It is important to input the disabled = 1 as you have above, but then click enable on the manager page. Putting the text as disabled = 0 will cause the monitor to not show up in the list.. At least those are things that I ran into personally.

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 ...