{"__v":16,"_id":"55d3b64af77e6d0d00b1b29d","category":{"__v":1,"_id":"55d3b645f77e6d0d00b1b278","pages":["55d3b64af77e6d0d00b1b29d","55d3b64af77e6d0d00b1b29e"],"project":"55c505b41469ad2500fa2ab7","version":"55d3b644f77e6d0d00b1b273","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-10T18:45:00.386Z","from_sync":false,"order":6,"slug":"rules","title":"Rules"},"parentDoc":null,"project":"55c505b41469ad2500fa2ab7","user":"55c50f4a7c199a2f00665cbf","version":{"__v":6,"_id":"55d3b644f77e6d0d00b1b273","project":"55c505b41469ad2500fa2ab7","createdAt":"2015-08-18T22:48:36.632Z","releaseDate":"2015-08-18T22:48:36.632Z","categories":["55d3b645f77e6d0d00b1b274","55d3b645f77e6d0d00b1b275","55d3b645f77e6d0d00b1b276","55d3b645f77e6d0d00b1b277","55d3b645f77e6d0d00b1b278","55d3b645f77e6d0d00b1b279","55d3b645f77e6d0d00b1b27a","55d3b645f77e6d0d00b1b27b","55d3b645f77e6d0d00b1b27c","55d3b645f77e6d0d00b1b27d","55d7c2939510f00d007ec6fe","56fac9925df15a20002972a2","56fb2f7668e1d30e00a0b672","583498d411e8af2500f6b334","58e52a180ab7b03b00f4a97a"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-10T23:09:31.797Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Rules should be created to automatically fix alerts using Neptune.io\n\nIn Neptune.io, you can create rules using different flows. You can fix the incidents from Incident dashboard and as a continuation you can automate the fix by creating rule. Alternatively, you can go to \"Create Rule\" in the left side bar and create rule from there.\n\n## Here is a detailed guide for creating rules using Create Rule tab:\n* Go to Create rule tab in the left side bar\n* Select the Trigger from the dropdown list\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/IHVWPef9T96fHYDvjPTg_createRule.png\",\n        \"createRule.png\",\n        \"1918\",\n        \"979\",\n        \"#731643\",\n        \"\"\n      ],\n      \"caption\": \"Select Trigger in rule creation\"\n    }\n  ]\n}\n[/block]\n* Set the Flag protection values.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/PQJEHigRwO1fLN2ktzaQ_Screen%20Shot%202015-08-18%20at%206.20.56%20PM.png\",\n        \"Screen Shot 2015-08-18 at 6.20.56 PM.png\",\n        \"1916\",\n        \"971\",\n        \"#84b653\",\n        \"\"\n      ],\n      \"caption\": \"Setting flap protection values in rule\"\n    }\n  ]\n}\n[/block]\n* Select the target infrastructure based on your infrastructure.\n* Select the host (s) on which the action to be taken. \n  * If you select the Trigger host, the host details are read from the incident/alert.\n  * If you select a specific host, the action always runs on that host. \n  * If you select a specific tag (or host group), Neptune dynamically fetches the hosts under that tag from the cloud and acts on all those machines.\n* Select the actual action. The remaining details need to be filled up based on the type of action you selected.\n  For example, if the action is EXECUTE_SCRIPT, you will need to select a runbook which will be executed.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/m23RdFqTvytlwTcVVeCg_Screen%20Shot%202015-08-18%20at%206.34.00%20PM.png\",\n        \"Screen Shot 2015-08-18 at 6.34.00 PM.png\",\n        \"1915\",\n        \"976\",\n        \"#6b1845\",\n        \"\"\n      ],\n      \"caption\": \"Selecting Action details for rule creation\"\n    }\n  ]\n}\n[/block]\n* Finally name the rule and click the \"Create Rule\" button to finish the rule creation.","excerpt":"","slug":"creating-rules","type":"basic","title":"Creating Rules"}
Rules should be created to automatically fix alerts using Neptune.io In Neptune.io, you can create rules using different flows. You can fix the incidents from Incident dashboard and as a continuation you can automate the fix by creating rule. Alternatively, you can go to "Create Rule" in the left side bar and create rule from there. ## Here is a detailed guide for creating rules using Create Rule tab: * Go to Create rule tab in the left side bar * Select the Trigger from the dropdown list [block:image] { "images": [ { "image": [ "https://files.readme.io/IHVWPef9T96fHYDvjPTg_createRule.png", "createRule.png", "1918", "979", "#731643", "" ], "caption": "Select Trigger in rule creation" } ] } [/block] * Set the Flag protection values. [block:image] { "images": [ { "image": [ "https://files.readme.io/PQJEHigRwO1fLN2ktzaQ_Screen%20Shot%202015-08-18%20at%206.20.56%20PM.png", "Screen Shot 2015-08-18 at 6.20.56 PM.png", "1916", "971", "#84b653", "" ], "caption": "Setting flap protection values in rule" } ] } [/block] * Select the target infrastructure based on your infrastructure. * Select the host (s) on which the action to be taken. * If you select the Trigger host, the host details are read from the incident/alert. * If you select a specific host, the action always runs on that host. * If you select a specific tag (or host group), Neptune dynamically fetches the hosts under that tag from the cloud and acts on all those machines. * Select the actual action. The remaining details need to be filled up based on the type of action you selected. For example, if the action is EXECUTE_SCRIPT, you will need to select a runbook which will be executed. [block:image] { "images": [ { "image": [ "https://files.readme.io/m23RdFqTvytlwTcVVeCg_Screen%20Shot%202015-08-18%20at%206.34.00%20PM.png", "Screen Shot 2015-08-18 at 6.34.00 PM.png", "1915", "976", "#6b1845", "" ], "caption": "Selecting Action details for rule creation" } ] } [/block] * Finally name the rule and click the "Create Rule" button to finish the rule creation.