AppD Archive

Can't pass an application name with spaces in it as a system property

CommunityUser
Splunk Employee
Splunk Employee

On a Linux OS, if you try -Dappdynamics.agent.applicationName="My Application" it fails, if you try -Dappdynamics.agent.applicationName="MyApplication" it works. I've tried + and %20 in place of whitespace character but I just get a new application with a + or %20 in the name. Any guesses?

0 Karma
1 Solution

Brian_Wheeldon
Contributor

There's no problem specifying an application name with spaces in it. We do it all the time.

My guess is that your -Dappdynamics.agent.applicationName="My Application"  is being processed by some other program before it gets to the java command line; that program is not handling the quotes properly.

Try escaping them? -Dappdynamics.agent.applicationName=\"My Application\" ?

Regards,

Brian Wheeldon

View solution in original post

0 Karma

Brian_Wheeldon
Contributor

There's no problem specifying an application name with spaces in it. We do it all the time.

My guess is that your -Dappdynamics.agent.applicationName="My Application"  is being processed by some other program before it gets to the java command line; that program is not handling the quotes properly.

Try escaping them? -Dappdynamics.agent.applicationName=\"My Application\" ?

Regards,

Brian Wheeldon

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

That is the problem. The shell that reads my definitions file is doing it's own escaping of the string, but escaping it myself isn't working either. Thanks for your suggestion.

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...