All Apps and Add-ons

Python script problems for Dynatrace app

robert_radosevi
New Member

When I installed the Dynatrace app, the Python script produced invalid paths for things like the classpath. For example,
c1 = os.path.join(appdir, "bin", "apache-flume-1.3.1-bin", "lib", "*")

produced within the classpath this string ".../bin/bin/..."

I fixed myself by changing to
c1 = os.path.join(appdir, "bin/apache-flume-1.3.1-bin", "lib", "*")

Could this be fixed? I can provide more details if necessary.

I was able to get this working, but it would be nice to include an example of a working command line within the documentation of the script and the instructions on the support page.

0 Karma

Dynatrace
Path Finder

Old post but version 2.3.0 of the app was uploaded today which should fix the edge cases resulting in the classpath not being properly enumerated.

The fix was to update the line defining appdir in the runFlume.py to the following:

appdir = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))
0 Karma

romantic_warrio
New Member

Hi.
I read another post which said to remove "bin"; it didn't work.

Did you correct c2 and c3 as well in the same way as shown above?

Thanks

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...