You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Learn how to use selective logging feature using script action in Azure HDInsight
10
+
# Learn how to use selective logging feature with script action in Azure HDInsight
11
11
12
12
[Azure Monitor logs](../azure-monitor/logs/log-query-overview.md) is an Azure Monitor service that monitors your cloud and on-premises environments. The monitoring is to maintain their availability and performance. It collects data generated by resources in your cloud, on-premises environments and from other monitoring tools. The data is used to provide analysis across multiple sources by enabling selective logging feature using script action in Azure portal in HDInsight.
13
13
@@ -28,76 +28,77 @@ Selective logging allows you to enable/disable all the tables or enable selectiv
28
28
## Prerequisites
29
29
30
30
* A Log Analytics workspace. You can think of this workspace as a unique Azure Monitor logs environment with its own data repository, data sources, and solutions. For the instructions, see [Create a Log Analytics workspace](../azure-monitor/vm/monitor-virtual-machine.md).
31
-
32
31
* An Azure HDInsight cluster. Currently, you can use selective logging feature with the following HDInsight cluster types:
32
+
* Hadoop
33
+
* HBase
34
+
* Interactive Query
35
+
* Spark
33
36
34
-
* Hadoop
35
-
* HBase
36
-
* Interactive Query
37
-
* Spark
38
-
39
-
For the instructions on how to create an HDInsight cluster, see [Get started with Azure HDInsight](hadoop/apache-hadoop-linux-tutorial-get-started.md).
37
+
For the instructions on how to create an HDInsight cluster, see [Get started with Azure HDInsight](hadoop/apache-hadoop-linux-tutorial-get-started.md).
40
38
41
39
## Enable/disable logs using script action for multiple tables and log types
42
40
43
41
1. Go to script action in your cluster and create a new Script Action for disabling/enabling table and log type.
1. Name the script. For example, Disable two tables and two sources.
47
+
1. In the script type, select **custom**.
48
+
1. Name the script. For example, **Disable two tables and two sources**.
51
49
1. Bash Script URL must be the link of the [selectiveLoggingScript.sh](https://hdiconfigactions.blob.core.windows.net/log-analytics-patch/selectiveLoggingScripts/selectiveLoggingScript.sh).
52
50
1. Select all the nodes of the cluster. For example, Head Node, Worker node, Zookeepr node.
53
-
1. Define the parameters in the parameter box. For example,
54
-
1. for Spark `spark HDInsightSparkLogs:SparkExecutorLog --disable`
55
-
1. for Interactivehive `interactivehive HDInsightSparkLogs:SparkExecutorLog --enable`
56
-
1. for Hadoop `hadoop HDInsightSparkLogs:SparkExecutorLog --disable`
57
-
1. for HBase`hbase HDInsightSparkLogs: HDInsightHBaseLogs --enable`
51
+
1. Define the parameters in the parameter box. For example:
0 commit comments