Splunk AppDynamics

Injection Using Nginx doesn't work

CommunityUser
Splunk Employee
Splunk Employee

I'm trying to use a javascript agent through Nginx injection, but it's not showing any events.

On my pages, the code is already being injected.

image.png

And the page has access to CDN correctly.

image.png

But nothing is being logged in the controller.

image.png

Does anyone have any idea what it can be?

Thank you!

Labels (1)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Using the code below has worked correctly: 

'<head> 

            <script charset="UTF-8">  

                window["adrum-start-time"] = new Date().getTime(); 

                (function(config){ 

                    config.appKey = "APP KEY"; 

                    config.adrumExtUrlHttp = "http://cdn.appdynamics.com"; 

                    config.adrumExtUrlHttps = "https://cdn.appdynamics.com"; 

                    config.beaconUrlHttp = "http://fra-col.eum-appdynamics.com"; 

                    config.beaconUrlHttps = "https://fra-col.eum-appdynamics.com"; 

                    config.xd = {enable : false}; 

                })(window["adrum-config"] || (window["adrum-config"] = {})); 

            </script> 

            <script type="text/javascript" src="//cdn.appdynamics.com/adrum/adrum-4.5.7.1910.js"></script>'; 

View solution in original post

CommunityUser
Splunk Employee
Splunk Employee

Using the code below has worked correctly: 

'<head> 

            <script charset="UTF-8">  

                window["adrum-start-time"] = new Date().getTime(); 

                (function(config){ 

                    config.appKey = "APP KEY"; 

                    config.adrumExtUrlHttp = "http://cdn.appdynamics.com"; 

                    config.adrumExtUrlHttps = "https://cdn.appdynamics.com"; 

                    config.beaconUrlHttp = "http://fra-col.eum-appdynamics.com"; 

                    config.beaconUrlHttps = "https://fra-col.eum-appdynamics.com"; 

                    config.xd = {enable : false}; 

                })(window["adrum-config"] || (window["adrum-config"] = {})); 

            </script> 

            <script type="text/javascript" src="//cdn.appdynamics.com/adrum/adrum-4.5.7.1910.js"></script>'; 

Get Updates on the Splunk Community!

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 ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...