All Apps and Add-ons

Splunk MINT: Is there a way to print any of my static variables in my Android app when the report is sent?

rafaelruiz
New Member

Hello.

I'm having a couple of bugs in my Android app regarding static variables. They seem to be released (like C++ or Obj-C !!) but it's not possible, but I really can't figure out other reason.

Is there anyway to print any of my static variables when the report is sent?

Thank you very much in advance.
Regards.
Rafael.

0 Karma

csaur_splunk
Splunk Employee
Splunk Employee

In terms of a static variable lifecycle: a static variable comes into existence when a class is loaded by the JVM and dies when the class is unloaded.
You might have to use some form of Reflection to output the values of static variables, like the Field class. And then you could log this using Mint.logEvent method within the SDK.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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