Coralogix simplifies the triggering of third-party services based on specific search results and values under designated keys.
STEP 1. Navigate to the Coralogix Explore > Logs screen.
STEP 2. Click on Settings in the upper right-hand corner. Select MANAGE ACTIONS from the drop-down menu.
STEP 3. A pop-up window displaying a list of defined Actions will appear. If the list is empty, a new Untitled Action will be opened.
STEP 4. If this isn’t your first Action, click + ADD NEW ACTION to create a new one.
STEP 5. Name the new Action in the Untitled Action pop-up.
STEP 6. In the URL field, add the external tool’s URL. For example: https://test-my-url.com?type={{ $m.subsystemName === "frontend" ? "Front" : "Back" }}
.
When using curly brackets {{}}, a dropdown menu with three variable types will appear: $p, $m, $d.
Variable | Description |
$p | Variables which can be used with any log (START_DATE, END_DATE, SELECTED_VALUE) |
$m | Coralogix metadata fields (applicationName, subsystemName, severity, etc.) |
$d | Selected log |
Notes:
{{ condition ? "true value" : "false value" }}
.STEP 7. [Optional] Advanced: Restrict the Action to specific applications and/or subsystems. Share it with teammates by activating the Make public when saved toggle.
STEP 8. Click RESET to clear the entered data. To save, click SAVE ACTION.
STEP 1. In your Coralogix navigation pane, click on Explore > Logs screen page.
STEP 2. Click on Settings in upper right-hand corner. In the drop-down menu, select MANAGE ACTIONS.
STEP 3. A pop-up window, containing a list of defined Actions, will be displayed.
STEP 4. Take various actions:
STEP 1. Access Coralogix Explore > Logs screen.
STEP 2. Define a query.
STEP 3. Trigger the action by:
Once an Action is chosen, the defined URL opens in a new tab.
Jira bug action
http://<company_name>.atlassian.net//secure/CreateIssueDetails!init.jspa?pid=<Jira_PID>&issuetype=<Jira_issueType>&description={{$d.logRecord.body}}&summary={{$d.msg}}
Query logs based on a key in the logs
https://<team_name>.app.coralogix.us/#/query-new/logs?query=<key>%3A%22{{$d.<key>}}%22&time=from:{{$p.start_date}},to:{{$p.end_date}}
Query spans based on a key in the logs
https://<team_name>.app.coralogix.us/#/query-new/tracing?query=<spans_key>:%22{{$d.<logs_key>}}%22&time=from:{{$p.start_date}},to:{{$p.end_date}}&page=0&onlyRootSpans=false&tracingTableView=spans
Jump to Grafana dashboard with filter from a key in the log
https://<team_name>.app.coralogix.us/#/grafana/d/WhANBmU4k/<grafana_dashboard_name>?orgId=342&var-<grafana_filter_name>={{$d.<log_key>}}
Need help?
Our world-class customer success team is available 24/7 to answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].