|
| 1 | +# Aggregated Logging Utilities |
| 2 | + |
| 3 | + ## logging-dump |
| 4 | +`logging-dump.sh` is a tool to gather as much information as possible from your logging cluster. In order to run the script, the user must be logged in and have a administrative permissions on project `logging` |
| 5 | + |
| 6 | +Usage: |
| 7 | +``` |
| 8 | +$ oc login -u admin https://openshift.example.com:8443 |
| 9 | +$./logging-dump.sh [<component1> ... <componentN>] |
| 10 | +``` |
| 11 | + |
| 12 | +Components: |
| 13 | +* kibana |
| 14 | +* elasticsearch |
| 15 | +* curator |
| 16 | +* fluentd |
| 17 | + |
| 18 | +Examples: |
| 19 | +* Get information from the nodes, project and all logging components |
| 20 | + |
| 21 | +`$ ./logging-dump.sh` |
| 22 | + |
| 23 | +* Get information only from elasticsearch and kibana componentes |
| 24 | + |
| 25 | +`$ ./logging-dump.sh elasticsearch kibana` |
| 26 | + |
| 27 | +* Resulting folder structure |
| 28 | +``` |
| 29 | +└── logging-<yyyyMMdd_HHmmss> |
| 30 | + ├── fluentd |
| 31 | + │ ├── logs |
| 32 | + │ │ ├── <logging-fluentd-pod-1>.log |
| 33 | + │ │ ├── ... |
| 34 | + │ │ └── <logging-fluentd-pod-N>.log |
| 35 | + │ ├── <logging-fluentd-pod-1> |
| 36 | + │ ├── ... |
| 37 | + │ └── <logging-fluentd-pod-N> |
| 38 | + ├── kibana |
| 39 | + │ ├── logs |
| 40 | + │ │ ├── <logging-kibana-pod>-kibana.log |
| 41 | + │ │ ├── <logging-kibana-pod>-kibana-proxy.log |
| 42 | + │ │ ├── <logging-kibana-ops-pod>-kibana.log |
| 43 | + │ │ └── <logging-kibana-ops-pod>-kibana-proxy.log |
| 44 | + │ ├── <logging-kibana-pod>-kibana |
| 45 | + │ └── <logging-kibana-pod>-kibana-proxy |
| 46 | + │ ├── <logging-kibana-ops-pod>-kibana |
| 47 | + │ └── <logging-kibana-ops-pod>-kibana-proxy |
| 48 | + ├── es |
| 49 | + │ ├── cluster-es |
| 50 | + | │ ├── aliases |
| 51 | + | │ ├── health |
| 52 | + | │ ├── indices |
| 53 | + | │ ├── nodes |
| 54 | + | │ ├── thread_pool |
| 55 | + | │ ├── pending_tasks |
| 56 | + | │ ├── recovery |
| 57 | + | │ ├── shards |
| 58 | + | │ └── unassigned_shards |
| 59 | + │ ├── cluster-es-ops |
| 60 | + | │ ├── aliases |
| 61 | + | │ ├── health |
| 62 | + | │ ├── indices |
| 63 | + | │ ├── nodes |
| 64 | + | │ ├── thread_pool |
| 65 | + | │ ├── pending_tasks |
| 66 | + | │ ├── recovery |
| 67 | + | │ ├── shards |
| 68 | + | │ └── unassigned_shards |
| 69 | + │ ├── logs |
| 70 | + │ │ ├── <logging-es-pod-1>.log |
| 71 | + │ │ ├── ... |
| 72 | + │ │ ├── <logging-es-ops-pod-1>.log |
| 73 | + │ │ └── ... |
| 74 | + │ ├── <logging-es-pod-1> |
| 75 | + │ └── ... |
| 76 | + │ ├── <logging-es-ops-pod-1> |
| 77 | + │ └── ... |
| 78 | + ├── curator |
| 79 | + │ ├── logs |
| 80 | + │ │ ├── <logging-curator-pod>.log |
| 81 | + │ │ └── <logging-curator-ops-pod>.log |
| 82 | + │ ├── <logging-curator-pod> |
| 83 | + │ └── <logging-curator-ops-pod> |
| 84 | + └── project |
| 85 | + ├── configmaps |
| 86 | + │ ├── ... # Configmaps |
| 87 | + ├── daemonsets |
| 88 | + │ ├── ... # Daemonsets |
| 89 | + ├── deploymentconfigs |
| 90 | + │ ├── ... # DeploymentConfigs |
| 91 | + ├── pods |
| 92 | + │ ├── ... # Pods |
| 93 | + ├── pvs |
| 94 | + │ ├── ... # Persistent Volumes |
| 95 | + ├── pvcs |
| 96 | + │ ├── ... # Persistent Volume Claims |
| 97 | + ├── routes |
| 98 | + │ ├── ... # Routes |
| 99 | + ├── services |
| 100 | + │ ├── ... # Services |
| 101 | + ├── serviceaccounts |
| 102 | + │ ├── ... # Service Accounts |
| 103 | + ├── events |
| 104 | + ├── logging-project |
| 105 | + ├── nodes |
| 106 | + └── secrets |
| 107 | +``` |
| 108 | + |
| 109 | + |
| 110 | +### Common |
| 111 | +* Nodes description `oc describe nodes` |
| 112 | +* Project `oc get project logging -o yaml` |
| 113 | +* Pod Logs |
| 114 | +* Docker image version `/root/buildinfo/Dockerfile-openshift3*` |
| 115 | +* Environment variables |
| 116 | +* Pod description |
| 117 | +* Deploymentconfigs |
| 118 | +* ServiceAccounts |
| 119 | +* Configmaps |
| 120 | +* Services |
| 121 | +* Routes |
| 122 | +* Persitent Volumes |
| 123 | +* Secrets (Only the name of the files included, not its content) |
| 124 | + |
| 125 | +### Fluentd |
| 126 | +* Connectivity with Elasticsearch Servicewith Elasticsearch Service |
| 127 | + |
| 128 | +### Curator |
| 129 | +* Connectivity with Elasticsearch Service |
| 130 | + |
| 131 | +### Kibana |
| 132 | +* Connectivity with Elasticsearch Servicewith Elasticsearch Service |
| 133 | +* Kibana-Proxy oauth-secret `//TODO` |
| 134 | + |
| 135 | +### Elasticsearch |
| 136 | +* Cluster health `/_cat/health?v` |
| 137 | +* Nodes and memory usage `/_cat/nodes?v` |
| 138 | +* Indices `/_cat/indices?v` |
| 139 | +* Aliases `/_cat/aliases?v` |
| 140 | +* Check 0/1 node folders |
| 141 | +* Conditional based on cluster health |
| 142 | + * Pending tasks `/_cluster/pending_tasks` |
| 143 | + * Recovery status `/_cat/recovery` |
| 144 | + * Indices health `/_cat/health?level=indices` |
| 145 | + * Unassigned Shards `/_cat/shards?h=index,shard,prirep,state,unassigned.reason,unassigned.description | grep UNASSIGNED` |
0 commit comments