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
Legend

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
Legend

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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...