Getting Data In

Proper syntax for urls.conf with multiple URLs

sliderCO
Explorer

Can someone clarify the syntax for multiple urls in the urls.conf file please for the WebMon?
The app is only picking up the last url in my file. The examples show brackets around the url name/title but I saw that there were no brackets in the earlier version.

My Site 1

url = http://www.site1.com

timeout = 30

userAgent = Mozilla/4.0

My Site 2

url = http://www.site2.com

timeout = 30

userAgent = Mozilla/4.0

My Site 3

url = http://www.site3.com

timeout = 30

userAgent = Mozilla/4.0

My site 4

url = http://www.site4.com

timeout = 30

userAgent = Mozilla/4.0

Thanks!

0 Karma

dearimranz
Engager

Hi, it might be that you have found the answer but I had the same problem. I think, I solved it by making a script called "webmon_handler.py" executable which is not executable by default.

0 Karma

splunktest_ng
New Member

Hi,
Can you pl help on how to configure webmon.
I did modify urls.conf but I cant see any data coming in. should the useragent be changed?
I am using IE 9

0 Karma

sliderCO
Explorer

For example:

[Site 1 CoolSite]
url = http://www.website1.com
timeout = 30
userAgent = Mozilla/4.0
[Site 2 CoolerSite]
url = http://www.website2.com
timeout = 30
userAgent = Mozilla/4.0
0 Karma

Blu3fish
Path Finder

Out of curiosity have you, or anyone else, figured out a way of specifying multiple pages under a given subdirectory as a single definition in urls.conf?

Such that
url = http://www.website.com/a/1
...
url = http://www.website.com/a/2

could be defined as
url = http://www.website.com/a/

because that'd be handy (whitelisting filetypes would too but we may have to wait for that one).

0 Karma

sliderCO
Explorer

I got it! The brackets are required for each URL or "ping_name" as it is referred to in the app.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...