Splunk AppDynamics

Is there an API in AppDynamics that can be used to archive events?

Dale_Chapman
Explorer

I am in the process of integrating AppDynamics with our build tool. I am going to add a step in the build to create an APPLICATION_DEPLOYMENT event whenever there is a code deployment to the production server. I have experimented with the event generation API and have it working. The API documentation states that events have a lifespan of two weeks unless the event is archived. Is there a way to have an event automatically archived as we want to have deployment events last for a year?

Is there another way to capture what we need?

Dale Chapman

Labels (3)
Tags (3)
0 Karma
1 Solution

Dale_Chapman
Explorer

I have tried your idea and I got a surprise. The REST call wasn't made because the javascript in the UI indicated that the event was already archived. The documentation does not indicate that the APPLICATION_DEPLOYED event is automatically archived but it does indicate that the APPLICATION_CONFIG_CHANGED event is. 
So, now my question is:
Does the APPLICATION_DEPLOYED event get automatically archived?
If so, my issue has been resolved.

Thanks!

Dale Chapman

View solution in original post

0 Karma

Morelz
Builder

Hi Dale

I don't believe there is an official API for it, that I know of.

To get the API that is being called just use developer tools in your browser, and archive an event. You will see a specific API that's called, with an input of the EventID that is being archived.

You can then just build that into your process, when you create a deployment event, to immediately archive it.

Ciao

Dale_Chapman
Explorer

I have tried your idea and I got a surprise. The REST call wasn't made because the javascript in the UI indicated that the event was already archived. The documentation does not indicate that the APPLICATION_DEPLOYED event is automatically archived but it does indicate that the APPLICATION_CONFIG_CHANGED event is. 
So, now my question is:
Does the APPLICATION_DEPLOYED event get automatically archived?
If so, my issue has been resolved.

Thanks!

Dale Chapman

0 Karma

Morelz
Builder

Awesome Dale

Easiest way would be to check if you can archive a "Normal Event", to see if the API works at all.

But yes, best would be to check with AppD Support if that is the case. Might just be an omission from the documentation that its auto archived.

Ciao

0 Karma

iamryan
Community Manager
Community Manager

Hi @Dale.Chapman,

If you share the Documentation link, I will have the Docs team look at it. 

0 Karma

Dale_Chapman
Explorer

The location where I saw this data is here:
https://docs.appdynamics.com/21.2/en/appdynamics-essentials/monitor-events/events-reference
Look for APPLICATION_CONFIG_CHANGE
There is a blue box below the description that states that this type of event is automatically archived.
Just below it, there is an entry for APPLICATION_DEPLOYMENT event. There is no equivalent blue box below it.

Thanks.

Dale Chapman

0 Karma

iamryan
Community Manager
Community Manager

Hi @Dale.Chapman,

I have created a ticket for the Docs team to look into it. Did you happen to see @Mario.Morelli response? If not, please check it out and see if his info helped out at all.

0 Karma
Get Updates on the Splunk Community!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

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