Splunk AppDynamics

Golang agent debug level

David_Boardman
Explorer

Is there a configuration parameter to enable verbose logging for the Golang agent ? 

David

Labels (1)
1 Solution

Sajna_Sreenivas
Path Finder

Hi David,

Have attached a simple code which created few BTs and logs complete trace info in the logs which reside in the default path.

Please note that this code is only for your reference.

Thanks,

Sajna Sreenivasan

View solution in original post

Ayush_Ghosh
Path Finder

Hi David,

I found this parameters in the Golang documentation which you can use.

https://docs.appdynamics.com/display/PRO44/Go+Agent+SDK+Reference

Logging – Logging settings for the controller. This struct is defined as:

const (
    APPD_LOG_LEVEL_DEFAULT LogLevel = iota
    APPD_LOG_LEVEL_TRACE
    APPD_LOG_LEVEL_DEBUG
    APPD_LOG_LEVEL_INFO
    APPD_LOG_LEVEL_WARN
    APPD_LOG_LEVEL_ERROR
    APPD_LOG_LEVEL_FATAL
)
type LoggingConfig struct {
    BaseDir             string
    MinimumLevel        LogLevel
    MaxNumFiles         uint
    MaxFileSizeBytes    uint
}
0 Karma

David_Boardman
Explorer

Code please.

^^^ in other words, can you provide a working Golang code example?

0 Karma

Sajna_Sreenivas
Path Finder

Hi David,

Have attached a simple code which created few BTs and logs complete trace info in the logs which reside in the default path.

Please note that this code is only for your reference.

Thanks,

Sajna Sreenivasan

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...