Splunk AppDynamics

AppDynamics not detecting standalone windows service

CommunityUser
Splunk Employee
Splunk Employee

Hi everyone

I have two issues I have to deal with:

1. Is it possible to configure a standalone application (Windows Service) that has a dynamic folder to the location of the application?

i.e

If I deploy my application today (2018.04.16) the application is placed in an folder where the agent configuration (config.xml) will look like:

      <standalone-application executable="c:\programs\mywindowsservice2018.04.16\mywindowsservice.exe">
         <tier name="Windows Service Tier" />
      </standalone-application> 

If I decide to redeploy the application due to some code changes next month, the folder will become

c:\programs\mywindowsservice2018.05.21\mywindowsservice.exe

The documentation only mentions about partial folders but nothing about using wildcards

https://docs.appdynamics.com/display/PRO44/Configure+the+.NET+Agent+for+Windows+Services+and+Standal...

2. To make matters worse, the executable name stated above is shared with multiple other applications distingushed by the folder name:

i.e 

c:\programs\mysecondwindowsservice2018.05.21\mywindowsservice.exe
c:\programs\mythirdwindowsservice2018.05.21\mywindowsservice.exe
Labels (1)
0 Karma
1 Solution

Raunak_Mohanty
Builder

Hi,

  In case you are passing different arguments to these executables then you can differentiate based on that. Just right click on the Windows Services at Services.msc and verify if that is the case

<standalone-application executable="MyWindowsService.exe" command-line="<Arugument"">
           <tier name="Windows Service Tier" />
        </standalone-application>
        <standalone-application executable="MyStandaloneApp.exe">
           <tier name="Standalone Tier" />
        </standalone-application>

Thanks,

Raunak 

View solution in original post

0 Karma

Raunak_Mohanty
Builder

Hi,

  If the name of the executable remains same after each deployment then you can always give just to executable name. If multiple instances of the same executable ( from different paths) can run then you can distinguish them using command line arguments. Otherwise, all instances will get identified and report to dynamically identified node names.

Thanks,

Raunak

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Raunak

Thanks for the reply, how do you uniquely distinguish the different applications using these arguments?

What I'm seeing now is all the applications on the dashboard are grouped into a Tier with the name I specified, but the nodes are named: mywindowsservice, mywindowsservice-1, mywindowsservice-2

0 Karma

Raunak_Mohanty
Builder
Hi,

Do these nodes represent different Windows Services ?

Thanks,
Raunak
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Yes

They are different applications but with the same executable names... 

0 Karma

Raunak_Mohanty
Builder

Hi,

  In case you are passing different arguments to these executables then you can differentiate based on that. Just right click on the Windows Services at Services.msc and verify if that is the case

<standalone-application executable="MyWindowsService.exe" command-line="<Arugument"">
           <tier name="Windows Service Tier" />
        </standalone-application>
        <standalone-application executable="MyStandaloneApp.exe">
           <tier name="Standalone Tier" />
        </standalone-application>

Thanks,

Raunak 

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks Raunak

Seems like I can do the following:

      <standalone-application executable="mywindowsservice.exe" command-line="myapplication1">
         <tier name="Windows Service Tier 1" />
      </standalone-application> 
      <standalone-application executable="mywindowsservice.exe" command-line="myapplication2">
         <tier name="Windows Service Tier 2" />
      </standalone-application> 
      <standalone-application executable="mywindowsservice.exe" command-line="myapplication3">
         <tier name="Windows Service Tier 3" />
      </standalone-application> 

but for some weird behaviour on the applciation dashboard it's grouping one of the apps into the another tier instead of creating a separate tier as specified

i.e it does

mywindowsservice-1 -> Windows Service Tier 1

mywindowsservice-2 -> Windows Service Tier 2

mywindowsservice-3 -> Windows Service Tier 1

0 Karma
Get Updates on the Splunk Community!

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...