youngmon/atlassian-qna huggingface dataset:
[NEVER MIND] Java SDK: "Key format is not valid"
Asked by Sam Peretz:

I was getting an invalid value for the key. My bad! Please ignore this!

I'm trying to create an alert using the [Java SDK](https://docs.opsgenie.com/docs/opsgenie-java-api#create-alert). I've followed the [guide for setting the API key](https://docs.opsgenie.com/docs/opsgenie-java-api#setting-api-key), trying all sorts of permutations:

```
OpsGenieClient client = new OpsGenieClient();

...

client.setApiKey(myKey);
```

or

```
client.setApiKey(base64Encode(myKey));
```

or

```
client.setApiKey(base64UrlEncode(myKey));
```

or using

```
alertApi = client.alertV2();

...

alertApi.getApiClient().setApiKey(myKey);
```

or the same variations as above passing the base 64 encoded or base 64 URL encoded key to alertApi.getApiClient().setApiKey(...);

No matter what I try, I always get the same result:

```
com.ifountain.opsgenie.client.swagger.ApiException: 
{
  "message": "Key format is not valid!",
  "took": 0.001,
  "requestId": "7ef9d057-8b49-4264-ad70-e79a14a3e1cb"
}
```

What am I doing wrong??


Answers:
author: Samir
body: Hi [@Sam Peretz](/t5/user/viewprofilepage/user-id/4630416) ,

Are you still having issues with this? [This section](http://Hello%20tree advocates, Speak for the Trees is partnering with Tree Eastie to give away a limited number of free trees! These are beautiful, healthy 4-6' trees in containers and are ready for planting on your property. There are 22 trees left...four species; nuttall oak, black gum, Serbian spruce and hornbeam. Availability is a first come, first served basis. Register here. Tree pickup will take place in East Boston the weekend of 11/20-21. Give yourself and the environment an early holiday present....the gift that keeps on giving! Thanks to our partners at Speak for the Trees for offering these trees to Eastie residents. Please let us know if you have any questions.) details the 2 different ways you can set-up the apiKey. You will want to get an api Key from an API integration in Opsgenie.

Let us know if you're still running into issues!

Thanks,

Samir

comments: author: Sam Peretz
body: Thanks [@Samir](/t5/user/viewprofilepage/user-id/2168284), I'm all set. As mentioned in my update to the question (at the topic), I was just doing something dumb -- I was getting the API key from AWS SSM Parameter Store and wasn't setting the decryption option correctly, so I was using the encrypted value I was getting back from that call, which of course was not a valid API key! :O It's working great now.


Tags: cloud
Error 'Possible CSRF attack detected!?
Asked by William Butt:

We have noticed this error intermittently when trying to view our polices and schedules.

When this error does occur, would the alert process still work?


Answers:
author: Samir
body: Hi [@William Butt](/t5/user/viewprofilepage/user-id/4345528) ,

This is just a front-end browser related error, it will have no impact on the alerting process in Opsgenie.

This can happen when sessions are reset causing stale cookies to be leftover. Refreshing/logging back in should clear the issue. Can you try refreshing your browser, and clearing cache/cookies and see if the error comes up?

Thanks,

Samir

comments: author: William Butt
body: Thanks Samir,

It's been happening frequently for the past three days and it's happening with other collogues of mine as well.

Very happy that this will not impact on the alerting process.


author: William Butt
body: I have cleared our cache and the error hasn't come up since.

Thank you again Samir.


author: Jan-Willem Aikens
body: i cannot schedule a maintenance policiy in windows 11 due to this error.

What cache did you clear Wiliam?

Thanks all. Jan-Willem


author: William Butt
body: Hi Jan-Willem,

I just cleared my browser cache. I had to do this on Edge and Chrome.

I have found in my instance that I still get the error however, I just then refresh my browser to clear the error. or a reload of the page, that stops the error again.

Hope that helps.


author: Jan-Willem Aikens
body: Thanks so much [@William Butt](/t5/user/viewprofilepage/user-id/4345528)

Clearing cache did it. Was the first time I had this issue and appeared just after updating to Windows 11. I do have to say I haven't scheduled a maintenance policy since about 2 weeks. So it might have nothing to do with the update.

Have a great remainder of your sunday!

Jan-Willem


author: William Butt
body: You as well [@Jan-Willem Aikens](/t5/user/viewprofilepage/user-id/4283063)

I must say that seeing a message with the work '... attack'... in it did not even remotely make me think of clearing browser cache :)
Logz io endpoint not working properly
Asked by Oskari J?rvinen:

Hello!  

I'm currently trying to integrate logz io and opsgenie to work together. Followed your instructions here <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-logzio/> . When testing if the endpoint works I get this error : Message from Opsgenie endpoint: Endpoint testing failed due to 'status code: 401, reason phrase: {"message":"Could not authenticate","took":0.001,"requestId":"5xxxx-cxxxx-4xxx-9xxx-be0c3fc5f7d8"}' (error-code 401). What could be causing this issue?


Answers:
author: Samir
body: Hi [@Oskari J?rvinen](/t5/user/viewprofilepage/user-id/4628342) ,

This is an authentication error. Could you share if your Opsgenie account is in EU domain? When you login to Opsgenie, is the url <https://app.opsgenie.com> or <https://app.eu.opsgenie.com> ?

If it is EU, you will need to change to create a custom notification endpoint in Logz.io with endpoint = <https://api.eu.opsgenie.com/v1/json/logzio?apiKey=your-integration-key>

your-integration-key is the apiKey from your logz.io integration in Opsgenie

e.g.

![2021-11-11_13-45-06.png](https://community.atlassian.com/t5/image/serverpage/image-id/168990i9186D59F584575B8/image-size/large?v=v2&px=999 "2021-11-11_13-45-06.png")

Thanks,

Samir

comments: author: Oskari J?rvinen
body: Thanks for help! This was the issue.


Tags: logz.io
Monthly Oncall Report
Asked by Brett Mason:

We're looking for a report that could be automated and sent to our accounts email address on a certain date each month displaying the days engineers have spent "on call" for the last 30 days. Is there a report that can be automated to show this simple output as opposed to having our accounts team log into opsgenie and produce reports manually? Perhaps its possible to send an email with the a month overview calendar view which would help achieve the same outcome for us?

Thanks.


Answers:
author: Samir
body: Hi [@Brett Mason](/t5/user/viewprofilepage/user-id/4628994) ,

If you are on the Opsgenie Standard or Enterprise plan, you can find this report via Analytics -\> On Call Reports where you can specify the time period (i.e. last 30 days) and it will display a table showing how many hours each user was on-call.

You can then click the gear icon in top-right -\> schedule and you can schedule this report to be sent every month, week, day, etc.

![2021-11-11_13-48-08.png](https://community.atlassian.com/t5/image/serverpage/image-id/168991i7B297B6EA269C2F5/image-size/large?v=v2&px=999 "2021-11-11_13-48-08.png")

You can schedule *any* reports in Opsgenie to be sent via email through this Schedule option.

Hope this helps!

Thanks,

Samir

comments: author: Brett Mason
body: Thanks Samir,

This certainly helps. What we found for our accounts team was accessing the actual schedule in calendar view as we are simply after a week on week off total each month as opposed to specific hour count which your report shows. This calendar view, i don't believe can be automated into an email, so for now we'll logon and manually review each month prior to payroll.

Thanks again


author: Brennan Kiely
body: .


author: Bartosz Bednarek
body: Is it possible to get report filtered by the on-call schedule?

comments: author: Brennan Kiely
body: Hi Bartosz,

If you select a team in the top-left on the Analytics page to view team-based reports, you can filter by schedule on the 'On Call Time Analytics' report.

-Brennan


Tags: cloud
Incoming call should create alert only after auto-attendant
Asked by Augustinas Stirbis:

Hey, we are using Incoming call routing and it's working great, except once in a while we get spam/telemarketers calling - creating alert waking up oncall personnel in the middle of the night - NOT COOL.

Problem:

We have configured auto-attendant and it's great, the problem is ++**alert is created before the auto-attendant even goes on the line**++, so spammer creates alert and causes us notification fatigue even if phone is dropped and no valid pin/key number is pressed as alert cascade to slack, OpsGenie app etc.

Attemps at workaround failed:

I tried not assigning any team on incoming call and filter on notification, but even if we remove default responders in Incoming call it gets assigned to team on auto-attendant list even though integration is global and not in the team.

I know there is blacklist feature, but it looks like it's always new number.


Answers:
author: Travers
body: Hi [Augustinas](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2994383),  
Travers here with Opsgenie Support. Thank you for reaching out!

* If you use the auto-attendant list feature, by default it will notify the responder team on the list. I recommend removing any responders from the "responders" field in the incoming call integration Advanced settings to reduce noise from spam.
* By doing this the Integration will work as described in your use case and only notify the team associated with the on-call key options in place.
* Best bet if the issue persists, will be to create an Opsgenie ticket or hop in a chat. This way Support can create a customer consent grant to view the exact integrations settings configured for the Incoming call integration and responders.
* Here is a screenshot of the responder field I am referring to in the integration settings.  
  ![Screen Shot 2021-11-11 at 12.27.22 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/168984i1EDBF5801A8BD6B9/image-size/large?v=v2&px=999 "Screen Shot 2021-11-11 at 12.27.22 PM.png")

comments: author: Augustinas Stirbis
body: thanks, looks like the product support this functionality but our integration changes (no responders) did not propagate, will raise a support ticket.


author: Travers
body: Glad to hear the information provided was helpful, Augustinas!

I will keep an eye out for your future Support ticket.


Tags: cloud
Email integration: add replies as Notes
Asked by Jason White:

I have an Advanced email integration. I want one alert to be created per email conversation. Replies should be added to the alert as Notes.

In the "Create Alert" section I'm setting the Alias to the Conversation Subject for deduping purposes. Now when there are replies to the email, they do not result in new alerts, but are added as attachments to the original alert.

In the "Add Note" section, I have the same Alias (Conversation subject), the From Name in the User field, and the Message in the Note field. I am expecting Notes to be created for each reply to the email conversation. However no Notes are created?

Can anyone explain this behavior or tell me how to accomplish this?


Answers:
author: Nick H
body: Hi [@Jason White](/t5/user/viewprofilepage/user-id/4379839) ,

Based on the use case, you will want to continue using the the Conversation Subject in the alias field for **all** integration actions. But your integration's Create Alert action should only create alerts for non-reply emails. Typically when a reply is made to an email, the Subject looks something like this in the payload (found under the Logs tab):

![emailcomm11.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/168381i2BE732D2CDC70589/image-size/large?v=v2&px=999 "emailcomm11.jpg")

The Create Alert action should filter on only creating alerts for non-reply emails. That filter might look something like this based on the payload above:

![emailcomm22.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/168378i0FB15FC937156BCD/image-size/large?v=v2&px=999 "emailcomm22.jpg")

While the Add Note action could act like a catch-all with the filter set to Match All alerts, or the opposite of the Create Alert action to something like this - and trigger on replay emails:

![emailcomm33.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/168379iFFC7070965BABB1C/image-size/large?v=v2&px=999 "emailcomm33.jpg")

Here's as well a test with the configuration outlined above - sending an initial email, and a reply in the thread:

![emailcomm44.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/168382i3BB857011893AD5A/image-size/large?v=v2&px=999 "emailcomm44.jpg")

![emailcomm55.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/168384iFB1DEE520F5E75F9/image-size/large?v=v2&px=999 "emailcomm55.jpg")

Hope that helps! Let us know if you have any additional questions, or if I'm missing the idea here.

comments: author: Jason White
body: That works perfectly. Thanks!


author: jfernandez_dbc
body: Hello. This works if Opsgenie is included in the original email. But what if Opsgenie was only added in the reply? Wouldn't that fall under the fallback path (Add Note path)?


Tags: cloud

email

integration
Bonjour j?aimerai conna?tre les tarifs? Existe il une notice en fran?ais
Asked by Marine Grosset:

Bonjour je cherche un logiciel d'astreinte automatique pour notre service m?dical.   

''j'aurai besoin de savoir combien cela co?te et plus d'information que le process.   

marine


Answers:
author: Nick H
body: Hi [@Marine Grosset](/t5/user/viewprofilepage/user-id/4625296) ,

Based on a quick Google translate, I believe you are inquiring about, "*Hello, I am looking for an automatic call software for our medical department. I'll need to know how much it costs, and more information of the process*."

Opsgenie has an [Incoming Call integration](https://support.atlassian.com/opsgenie/docs/incoming-call-routing/) that might be helpful for your use-case. "*Incoming call routing provides a phone number and manages the routing of incoming calls to this phone number based on your on-call preferences. This can be used, for example, as a support call hotline that routes incoming calls to the right on-call engineers*."

Pricing for the Incoming Call integration can be viewed here: <https://www.atlassian.com/software/opsgenie/pricing>

Both Opsgenie Standard and Enterprise plans receive one free Incoming Call line. Each additional line is $10/line/month, along with minutes:

![incommcomm1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/168418i85F13FD176E43C0F/image-size/large?v=v2&px=999 "incommcomm1.jpg")

Hope this helps! Let me know if you have any additional questions.
Logzio <-> Opsgenie integration - Alert alias
Asked by Maor:

Hi,

I am trying to create an alert in Opsgenie using Logz.io integration I am not able to set custom "alias" in order to reduce alert duplication.

Is there a way to set custom alias in Logzio?

Thanks


Answers:
author: Darryl Lee
body: Hi Maor,

This is Darryl, Opsgenie Support. I am here to help. :smile:

Understand that you would like to adjust the alias field to leverage the [Alert De-duplication](https://support.atlassian.com/opsgenie/docs/what-is-alert-de-duplication/) for alerts created by Logzio integration.

As I've replied to you in another support ticket. From our end, I found that your Opsgenie is currently subscribing to the Free plan, which has very limited feature sets available.

In a Free plan, **you will not be able to adjust the alias field from the [Advanced Integration Settings](https://support.atlassian.com/opsgenie/docs/use-advanced-integration-settings/) of the Logz.io integration** on your Opsgenie but only be able to use the default settings.,

In the default settings, Opsgenie takes the value of {{alert_alias}} from the payload sent from the Logz.io site as the alias field value for Alert De-duplication.

*** ** * ** ***

The concept of Alert De-duplication is to suppress the creation of the alerts from multiple data having the same alias value as lone as there is an existing one still not closed yet. This will be very helpful for reducing alert/notification fatigue.

The solution here is to please adjust the {{alert_alias}} field value from your Logz.io side to ensure the duplicated data sent to Opsgenie will contain the same value while the independent data will have unique values.

Hope this helps.

Kind regards,  
Darryl Lee  
Opsgenie Support


Tags: cloud

logz.io
Find out alerts where where Notes field is blank
Asked by Lalit Narvekar:

I want to search the alerts where there are no notes or notes field is blank.

Can someone please help me in this.


Answers:
author: Samir
body: Hi [@Lalit Narvekar](/t5/user/viewprofilepage/user-id/4620538) !

There isn't a way to query for the notes field on the Alert Dashboard in Opsgenie. We do have a feature request for this - so hopefully this will be implemented in the future.

The Alert API has an Option to List Alert notes, so you could build a script to find alerts that do not contain any notes by leveraging the[List Alert Notes API request](https://docs.opsgenie.com/docs/alert-api-continued#list-alert-notes).

Thanks,

Samir

comments: author: Nanthakumar_Sadasivam
body: Hi Atlassian Team,

Whether the feature to identify the Notes field which is blank is addressed in Opsgenie alerts?

Regards,

NANDAS.


author: Stephen Crandell
body: [@Samir](/t5/user/viewprofilepage/user-id/2168284) Do you have a link to the feature request for this? I would like to keep track and vote if possible as we have team members looking for this

Thanks,  
Stephen


Tags: cloud
Alert lifecycle in Slack channel
Asked by anant:

What happens to the existing Alert in Slack when I acknowledge or resolve that alert in the OpsGenie console? Do you have a wiki explaining the complete bi-directional workflow?


Answers:
author: Samir
body: Hi [@anant](/t5/user/viewprofilepage/user-id/4616298) !

If the alert is acknowledged in Opsgenie, a message will be sent to slack showing that the alert was acknowledged (you can also disable this if you don't want a slack message when an alert is acknowledged). This is detailed on our ![Screenshot_SlackAlertAck.png](https://community.atlassian.com/t5/image/serverpage/image-id/167181i8066CA239A42EAF1/image-size/large?v=v2&px=999 "Screenshot_SlackAlertAck.png")

Hope this helps!

Thanks,

Samir

comments: author: anant
body: Thank you, Samir.

I realize I need to rely on the color coding to figure out which alerts are acknowledged along with this message. With a flood of messages in this channel, it is very hard to figure out what has been acknowledged, resolved etc. How are others dealing with this alert fatigue given there's no sorting, filtering in the Slack channel? Any best practices you recommend?


author: anant
body: Hi [@Samir](/t5/user/viewprofilepage/user-id/2168284) - Just following up on my query. Did you have any additional inputs?


author: Samir
body: Hi [@anant](/t5/user/viewprofilepage/user-id/4616298) ,

Apologies, I didn't see your reply. I'm not sure I understand the question. When an alert is created, it is sent to the slack channel with a color of red

![2021-12-02_08-43-18.png](https://community.atlassian.com/t5/image/serverpage/image-id/171905i0BEB4B7E6FFF662C/image-size/large?v=v2&px=999 "2021-12-02_08-43-18.png")

When that alert is *acknowledged* the color will turn to blue, and another message will appear showing that the alert is acknowledged

![2021-12-02_08-44-00.png](https://community.atlassian.com/t5/image/serverpage/image-id/171906i99F7ECE260AA5ED4/image-size/large?v=v2&px=999 "2021-12-02_08-44-00.png")

When that alert is *closed*, the color will turn to green, and another message will appear showing the alert is closed

![2021-12-02_08-44-39.png](https://community.atlassian.com/t5/image/serverpage/image-id/171907iF164F69D432EE38F/image-size/large?v=v2&px=999 "2021-12-02_08-44-39.png")
Make changes to rotation in the future?
Asked by Daelynn Moyer:

One of the things I'm able to do in PagerDuty is to edit rotations, and to define an effective date for that edit, so that if, for example, I want to add a user to the rotation, but have that addition be effective as of a certain date, I could set that date to be in the future. That doesn't seem to be an option in OpsGenie. Is there a workaround for this? Or am I just not understanding the UI?


Answers:
author: Samir
body: Hi [@Daelynn Moyer](/t5/user/viewprofilepage/user-id/4616765) !

There isn't a way to add a user to an existing rotation starting sometime in the future. Once you edit a rotation and add a user to the participants list, that user becomes part of the rotation.

What you can do, is set-up a *new* rotation with that additional user, and set the Start Date/Time for that rotation to a future date. And then set the End Date/Time of the *existing* rotation so that the rotation will end when the *new* one starts.

Existing Rotation ends on December 1st:

![2021-10-29_12-33-22.png](https://community.atlassian.com/t5/image/serverpage/image-id/167228i5BFF4529DA44C884/image-size/large?v=v2&px=999 "2021-10-29_12-33-22.png")

New Rotation starts when existing rotation ends, i.e. December 1st:

![2021-10-29_12-34-06.png](https://community.atlassian.com/t5/image/serverpage/image-id/167229i7EE2DB35DF935716/image-size/large?v=v2&px=999 "2021-10-29_12-34-06.png")

Hope that helps!

Thanks,

Samir

comments: author: Daelynn Moyer
body: Ah, yes! That's just what I needed. Thanks for the tip!
Parse one tag value from the tags on the New Relic integration message alert fields
Asked by Alexander Blagus Vital de Souza:

*Hi everyone!*

I have a **New Relic integration** in my OpsGenie that works pretty well, with working tags incoming from New Relic. I would like to **parse the value of a single tag** from my notification channel into the Message field of the integration. Please refer to the screenshots bellow:

![Screenshot_20211028_134529.png](https://community.atlassian.com/t5/image/serverpage/image-id/167051i6C0031F510AEF574/image-dimensions/164x160?v=v2 "Screenshot_20211028_134529.png") ![Screenshot_20211028_134611.png](https://community.atlassian.com/t5/image/serverpage/image-id/167052i2F996191099B10ED/image-dimensions/236x160?v=v2 "Screenshot_20211028_134611.png")

*How do I parse a single tag value in the yellow highlight above?*


Answers:
author: Samir
body: Hi [@Alexander Blagus Vital de Souza](/t5/user/viewprofilepage/user-id/4612459) !

Tags is an "array" field in Opsgenie, so that's why the {{tags.statusPageAppName}} option isn't working for you. That only works on key-value fields like Extra Properties.

For tags, you can use [regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/) or [string processing](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/) to parse out a specific tag. For example, you could use {{tags.substringAfter("statusPageAppName:")}}

Hope that helps!

Thanks,

Samir

comments: author: Alexander Blagus Vital de Souza
body: That's quite interesting! Thank you very much for the answer and for the reference links! I'll be testing if this works.

*Have a nice day!!*


author: Alexander Blagus Vital de Souza
body: *Works like a charm!*I just have to create a better algorithm because the closing braket ("\]") is appearing, as expected. I'll refer to the docs to create a refined parser.

*thank you very so much!*


author: Alexander Blagus Vital de Souza
body: For the final solution I used [Regular Expressions](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/). This one works well with another tags or with just one:

```
{{tags.extract(/(cmp_)([^\,\:]+)/,2)}}
```

![Screenshot_20211028_162344.png](https://community.atlassian.com/t5/image/serverpage/image-id/167068i07D51BAAAA39B732/image-size/large?v=v2&px=999 "Screenshot_20211028_162344.png")

As seen, I am using the existent ***cmp_*** tags already used for the StatusPage integration.


Tags: integration

newrelic