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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...