Splunk Search

loadjob command has issues with colons in my saved search name?

the_wolverine
Champion

I've got a saved search name with colons, like this:

savedsearch_name="Mysearch: has a colon"

The loadjob command doesn't seem to like it and I can't figure out how to make it work other than to rename my search to something without spaces:

" | loadjob "admin:search:Mysearch:
has a colon"

Splunk (5.0.3) reports:

"Error in 'loadjob' command: Option
'savedsearch_name=admin:search:Mysearch:
has a colon' is invalid.

0 Karma
1 Solution

the_wolverine
Champion

Yes, the loadjob command has an issue with colons. Not sure about any other characters. It would be nice to have this documented so I can name my searches in a manner that they can be used with the loadjob command.

View solution in original post

the_wolverine
Champion

Yes, the loadjob command has an issue with colons. Not sure about any other characters. It would be nice to have this documented so I can name my searches in a manner that they can be used with the loadjob command.

the_wolverine
Champion

filed a bug with Splunk.

0 Karma

laserval
Communicator

Agreeing with @somesoni2, spaces should not be a problem in loadjob. Try it without the colon. I use dashes in my saved searches .

0 Karma

somesoni2
Revered Legend

I believe renaming is the only options here. It seems loadjob doesn't support object name containing colon or semicolon. Spaces works fine.

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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