Sending payload to New relic
Hi, I am trying to send data using scheduled searches to New relic through WebHook.
The payload gets posted to NR, but the query doesn't get executed instead the searchURL is posted to NR. Is this the expected behavior and how should I run this query in NewRelic? My expectation was that the JSON payload would contain the substituted search results instead of the URL itself. Can someone please suggest what the payload should look like. Thanks
-
Official comment
Hi Nayyar,
With the New Relic Webhook connection, your payload must include "eventType" and "search_results" as parameters. For the "search_results" parameter, you'll need to include either {{AggregateResultsJson}} or {{RawResultsJson}}. See here for an example payload.
{{AggregateResultsJson}} should be used for "search_results" if your query is performing any aggregation (e.g., error | timeslice 1m | count by _timeslice).
{{RawResultsJson}} should be used for "search_results" if your query does not perform any aggregation.
With the appropriate payload, Sumo will send the data through the New Relic Insights API and you'll be able to query this in New Relic Insights using the NRQL.
Let me know if that helps!
Thanks,
Brian
Comment actions
Please sign in to leave a comment.
Comments
1 comment