├── doc └── openldap-elk-ldap-operations.png ├── README.md ├── logstash └── openldap.conf ├── kibana3 ├── ldap_error_codes └── openldap_operations └── LICENSE /doc/openldap-elk-ldap-operations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ltb-project/openldap-elk/HEAD/doc/openldap-elk-ldap-operations.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OpenLDAP ELK 2 | ELK configuration to parse OpenLDAP logs 3 | 4 | ## Presentation 5 | 6 | ELK (ElasticSearch/Logstash/Kibana) is a suite of tools that allow to parse, store and display data from logs. This project provides some sample configurations of these tools in order to get statistics from OpenLDAP logs. 7 | 8 | ![Screenshot](doc/openldap-elk-ldap-operations.png) 9 | 10 | ## Usage 11 | 12 | ### Logstash 13 | 14 | Use the files in logstash as configurations. For example, copy them in /etc/logstash/conf.d and run: 15 | /opt/logstash/bin/logstash agent -f /etc/logstash/conf.d/ 16 | 17 | ### Elastic Search 18 | 19 | You just need to have Elastic Search running on the default port 20 | 21 | ### Kibana 3 22 | 23 | In Kibana 3, select Load > Advanced > Local File and import dashbords. For now, this project provides 2 dashboards: 24 | * OpenLDAP operations : statistics on LDAP operations (Bind, Add, Search, ...) 25 | * LDAP error codes : statistics on error codes (No such object, Invalid credentials, ...) 26 | 27 | -------------------------------------------------------------------------------- /logstash/openldap.conf: -------------------------------------------------------------------------------- 1 | input{ 2 | file { 3 | path => "/var/log/openldap.log" 4 | start_position => beginning 5 | type => "openldap_log_file" 6 | } 7 | } 8 | 9 | filter { 10 | grok { 11 | match => [ "message", "%{SYSLOGBASE} (?:(?:<= (?:b|m)db_%{DATA:index_error_filter_type}_candidates: \(%{WORD:index_error_attribute_name}\) not indexed)|(?:ppolicy_%{DATA:ppolicy_op}: %{DATA:ppolicy_data})|(?:connection_input: conn=%{INT:connection} deferring operation: %{DATA:deferring_op})|(?:connection_read\(%{INT:fd_number}\): no connection!)|(?:conn=%{INT:connection} (?:(?:fd=%{INT:fd_number} (?:(?:closed(?: \(connection lost\)|))|(?:ACCEPT from IP=%{IP:src_ip}\:%{INT:src_port} \(IP=%{IP:dst_ip}\:%{INT:dst_port}\))|(?:TLS established tls_ssf=%{INT:tls_ssf} ssf=%{INT:ssf})))|(?:op=%{INT:operation_number} (?:(?:(?:(?:SEARCH )|(?:))RESULT (?:tag=%{INT:tag}|oid=(?:%{DATA:oid}(?:))) err=%{INT:error_code}(?:(?: nentries=%{INT:nentries})|(?:)) text=(?:(?:%{DATA:error_text})|(?:)))|(?:%{WORD:operation_name}(?:(?: %{DATA:data})|(?:))))))))%{SPACE}$" ] 12 | } 13 | date { 14 | locale => "en" 15 | match => [ "timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss", "ISO8601" ] 16 | target => "@timestamp" 17 | } 18 | if [operation_name] == "BIND" { 19 | grok { 20 | match => [ "data", "(?:(?:(?anonymous))|(?:dn=\"%{DATA:bind_dn}\")) (?:(?:method=%{WORD:bind_method})|(?:mech=%{WORD:bind_mech} ssf=%{INT:bind_ssf}))%{SPACE}$" ] 21 | remove_field => [ "data" ] 22 | } 23 | } 24 | if [operation_name] == "SRCH" { 25 | grok { 26 | match => [ "data", "(?:(?:base=\"%{DATA:search_base}\" scope=%{INT:search_scope} deref=%{INT:search_deref} filter=\"%{DATA:search_filter}\")|(?:attr=%{DATA:search_attr}))%{SPACE}$" ] 27 | remove_field => [ "data" ] 28 | } 29 | } 30 | if [operation_name] == "MOD" { 31 | grok { 32 | match => [ "data", "(?:(?:dn=\"%{DATA:mod_dn}\")|(?:attr=%{DATA:mod_attr}))%{SPACE}$" ] 33 | remove_field => [ "data" ] 34 | } 35 | } 36 | if [operation_name] == "MODRDN" { 37 | grok { 38 | match => [ "data", "dn=\"%{DATA:modrdn_dn}\"%{SPACE}$" ] 39 | remove_field => [ "data" ] 40 | } 41 | } 42 | if [operation_name] == "ADD" { 43 | grok { 44 | match => [ "data", "dn=\"%{DATA:add_dn}\"%{SPACE}$" ] 45 | remove_field => [ "data" ] 46 | } 47 | } 48 | if [operation_name] == "DEL" { 49 | grok { 50 | match => [ "data", "dn=\"%{DATA:del_dn}\"%{SPACE}$" ] 51 | remove_field => [ "data" ] 52 | } 53 | } 54 | if [operation_name] == "CMP" { 55 | grok { 56 | match => [ "data", "dn=\"%{DATA:cmp_dn}\" attr=\"%{DATA:cmp_attr}\"%{SPACE}$" ] 57 | remove_field => [ "data" ] 58 | } 59 | } 60 | if [operation_name] == "EXT" { 61 | grok { 62 | match => [ "data", "oid=%{DATA:ext_oid}%{SPACE}$" ] 63 | remove_field => [ "data" ] 64 | } 65 | } 66 | if [ppolicy_op] == "bind" { 67 | grok { 68 | match => [ "ppolicy_data", "(?:(?:Entry %{DATA:ppolicy_bind_dn} has an expired password: %{INT:ppolicy_grace} grace logins)|(?:Setting warning for password expiry for %{DATA:ppolicy_bind_dn} = %{INT:ppolicy_expiration} seconds))%{SPACE}$" ] 69 | remove_field => [ "ppolicy_data" ] 70 | } 71 | } 72 | } 73 | 74 | output{ 75 | if "_grokparsefailure" in [tags] { 76 | stdout { codec => rubydebug } 77 | } 78 | elasticsearch { } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /kibana3/ldap_error_codes: -------------------------------------------------------------------------------- 1 | { 2 | "title": "ldap_error_codes", 3 | "services": { 4 | "query": { 5 | "list": { 6 | "0": { 7 | "query": "error_code:\"0\"", 8 | "alias": "Success", 9 | "color": "#7EB26D", 10 | "id": 0, 11 | "pin": false, 12 | "type": "lucene", 13 | "enable": true 14 | }, 15 | "1": { 16 | "id": 1, 17 | "color": "#EAB839", 18 | "alias": "Invalid credentials", 19 | "pin": false, 20 | "type": "lucene", 21 | "enable": true, 22 | "query": "error_code:\"49\"" 23 | }, 24 | "2": { 25 | "id": 2, 26 | "color": "#6ED0E0", 27 | "alias": "No such object", 28 | "pin": false, 29 | "type": "lucene", 30 | "enable": true, 31 | "query": "error_code:\"32\"" 32 | }, 33 | "3": { 34 | "id": 3, 35 | "color": "#EF843C", 36 | "alias": "Compare FALSE", 37 | "pin": false, 38 | "type": "lucene", 39 | "enable": true, 40 | "query": "error_code:\"5\"" 41 | }, 42 | "4": { 43 | "id": 4, 44 | "color": "#E24D42", 45 | "alias": "Compare TRUE", 46 | "pin": false, 47 | "type": "lucene", 48 | "enable": true, 49 | "query": "error_code:\"6\"" 50 | } 51 | }, 52 | "ids": [ 53 | 0, 54 | 1, 55 | 2, 56 | 3, 57 | 4 58 | ] 59 | }, 60 | "filter": { 61 | "list": { 62 | "0": { 63 | "type": "time", 64 | "field": "@timestamp", 65 | "from": "now-15m", 66 | "to": "now", 67 | "mandate": "must", 68 | "active": true, 69 | "alias": "", 70 | "id": 0 71 | } 72 | }, 73 | "ids": [ 74 | 0 75 | ] 76 | } 77 | }, 78 | "rows": [ 79 | { 80 | "title": "Graph", 81 | "height": "350px", 82 | "editable": true, 83 | "collapse": false, 84 | "collapsable": true, 85 | "panels": [ 86 | { 87 | "span": 12, 88 | "editable": true, 89 | "group": [ 90 | "default" 91 | ], 92 | "type": "histogram", 93 | "mode": "count", 94 | "time_field": "@timestamp", 95 | "value_field": null, 96 | "auto_int": true, 97 | "resolution": 100, 98 | "interval": "10s", 99 | "fill": 3, 100 | "linewidth": 3, 101 | "timezone": "browser", 102 | "spyable": true, 103 | "zoomlinks": true, 104 | "bars": true, 105 | "stack": true, 106 | "points": false, 107 | "lines": false, 108 | "legend": true, 109 | "x-axis": true, 110 | "y-axis": true, 111 | "percentage": false, 112 | "interactive": true, 113 | "queries": { 114 | "mode": "all", 115 | "ids": [ 116 | 0, 117 | 1, 118 | 2, 119 | 3, 120 | 4 121 | ] 122 | }, 123 | "title": "Events over time", 124 | "intervals": [ 125 | "auto", 126 | "1s", 127 | "1m", 128 | "5m", 129 | "10m", 130 | "30m", 131 | "1h", 132 | "3h", 133 | "12h", 134 | "1d", 135 | "1w", 136 | "1M", 137 | "1y" 138 | ], 139 | "options": true, 140 | "tooltip": { 141 | "value_type": "cumulative", 142 | "query_as_alias": true 143 | }, 144 | "scale": 1, 145 | "y_format": "none", 146 | "grid": { 147 | "max": null, 148 | "min": 0 149 | }, 150 | "annotate": { 151 | "enable": false, 152 | "query": "*", 153 | "size": 20, 154 | "field": "_type", 155 | "sort": [ 156 | "_score", 157 | "desc" 158 | ] 159 | }, 160 | "pointradius": 5, 161 | "show_query": true, 162 | "legend_counts": true, 163 | "zerofill": true, 164 | "derivative": false, 165 | "scaleSeconds": true 166 | }, 167 | { 168 | "span": 8, 169 | "editable": true, 170 | "type": "histogram", 171 | "loadingEditor": false, 172 | "mode": "count", 173 | "time_field": "@timestamp", 174 | "value_field": null, 175 | "x-axis": true, 176 | "y-axis": true, 177 | "scale": 1, 178 | "y_format": "none", 179 | "grid": { 180 | "max": null, 181 | "min": 0 182 | }, 183 | "queries": { 184 | "mode": "all", 185 | "ids": [ 186 | 0, 187 | 1, 188 | 2, 189 | 3, 190 | 4 191 | ] 192 | }, 193 | "annotate": { 194 | "enable": false, 195 | "query": "*", 196 | "size": 20, 197 | "field": "_type", 198 | "sort": [ 199 | "_score", 200 | "desc" 201 | ] 202 | }, 203 | "auto_int": true, 204 | "resolution": 100, 205 | "interval": "10s", 206 | "intervals": [ 207 | "auto", 208 | "1s", 209 | "1m", 210 | "5m", 211 | "10m", 212 | "30m", 213 | "1h", 214 | "3h", 215 | "12h", 216 | "1d", 217 | "1w", 218 | "1y" 219 | ], 220 | "lines": false, 221 | "fill": 0, 222 | "linewidth": 3, 223 | "points": false, 224 | "pointradius": 5, 225 | "bars": true, 226 | "stack": true, 227 | "spyable": true, 228 | "zoomlinks": true, 229 | "options": true, 230 | "legend": true, 231 | "show_query": true, 232 | "interactive": true, 233 | "legend_counts": true, 234 | "timezone": "browser", 235 | "percentage": true, 236 | "zerofill": true, 237 | "derivative": false, 238 | "tooltip": { 239 | "value_type": "cumulative", 240 | "query_as_alias": true 241 | }, 242 | "title": "Error codes" 243 | }, 244 | { 245 | "span": 4, 246 | "editable": true, 247 | "type": "hits", 248 | "loadingEditor": false, 249 | "style": { 250 | "font-size": "10pt" 251 | }, 252 | "arrangement": "horizontal", 253 | "chart": "pie", 254 | "counter_pos": "above", 255 | "donut": false, 256 | "tilt": false, 257 | "labels": true, 258 | "spyable": true, 259 | "queries": { 260 | "mode": "all", 261 | "ids": [ 262 | 0, 263 | 1, 264 | 2, 265 | 3, 266 | 4 267 | ] 268 | }, 269 | "title": "Error codes" 270 | } 271 | ], 272 | "notice": false 273 | }, 274 | { 275 | "title": "Events", 276 | "height": "350px", 277 | "editable": true, 278 | "collapse": false, 279 | "collapsable": true, 280 | "panels": [ 281 | { 282 | "title": "All events", 283 | "error": false, 284 | "span": 12, 285 | "editable": true, 286 | "group": [ 287 | "default" 288 | ], 289 | "type": "table", 290 | "size": 100, 291 | "pages": 5, 292 | "offset": 0, 293 | "sort": [ 294 | "@timestamp", 295 | "desc" 296 | ], 297 | "style": { 298 | "font-size": "9pt" 299 | }, 300 | "overflow": "min-height", 301 | "fields": [ 302 | "error_code", 303 | "message" 304 | ], 305 | "localTime": true, 306 | "timeField": "@timestamp", 307 | "highlight": [ 308 | "error_code" 309 | ], 310 | "sortable": true, 311 | "header": true, 312 | "paging": true, 313 | "spyable": true, 314 | "queries": { 315 | "mode": "all", 316 | "ids": [ 317 | 0, 318 | 1, 319 | 2, 320 | 3, 321 | 4 322 | ] 323 | }, 324 | "field_list": true, 325 | "status": "Stable", 326 | "trimFactor": 300, 327 | "normTimes": true, 328 | "all_fields": false 329 | } 330 | ], 331 | "notice": false 332 | } 333 | ], 334 | "editable": true, 335 | "failover": false, 336 | "index": { 337 | "interval": "day", 338 | "pattern": "[logstash-]YYYY.MM.DD", 339 | "default": "NO_TIME_FILTER_OR_INDEX_PATTERN_NOT_MATCHED", 340 | "warm_fields": true 341 | }, 342 | "style": "dark", 343 | "panel_hints": true, 344 | "pulldowns": [ 345 | { 346 | "type": "query", 347 | "collapse": false, 348 | "notice": false, 349 | "query": "*", 350 | "pinned": true, 351 | "history": [ 352 | "error_code:\"6\"", 353 | "error_code:\"5\"", 354 | "error_code:\"32\"", 355 | "error_code:\"49\"", 356 | "error_code:\"0\"", 357 | "error_code=6", 358 | "error_code=5", 359 | "error_code=32", 360 | "error_code=49", 361 | "error_code=0" 362 | ], 363 | "remember": 10, 364 | "enable": true 365 | }, 366 | { 367 | "type": "filtering", 368 | "collapse": true, 369 | "notice": true, 370 | "enable": true 371 | } 372 | ], 373 | "nav": [ 374 | { 375 | "type": "timepicker", 376 | "collapse": false, 377 | "notice": false, 378 | "status": "Stable", 379 | "time_options": [ 380 | "5m", 381 | "15m", 382 | "1h", 383 | "6h", 384 | "12h", 385 | "24h", 386 | "2d", 387 | "7d", 388 | "30d" 389 | ], 390 | "refresh_intervals": [ 391 | "5s", 392 | "10s", 393 | "30s", 394 | "1m", 395 | "5m", 396 | "15m", 397 | "30m", 398 | "1h", 399 | "2h", 400 | "1d" 401 | ], 402 | "timefield": "@timestamp", 403 | "now": true, 404 | "filter_id": 0, 405 | "enable": true 406 | } 407 | ], 408 | "loader": { 409 | "save_gist": false, 410 | "save_elasticsearch": true, 411 | "save_local": true, 412 | "save_default": true, 413 | "save_temp": true, 414 | "save_temp_ttl_enable": true, 415 | "save_temp_ttl": "30d", 416 | "load_gist": true, 417 | "load_elasticsearch": true, 418 | "load_elasticsearch_size": 20, 419 | "load_local": true, 420 | "hide": false 421 | }, 422 | "refresh": false 423 | } -------------------------------------------------------------------------------- /kibana3/openldap_operations: -------------------------------------------------------------------------------- 1 | { 2 | "title": "openldap_operations", 3 | "services": { 4 | "query": { 5 | "list": { 6 | "0": { 7 | "query": "operation_name:\"BIND\" AND _exists_:bind_method", 8 | "alias": "Bind", 9 | "color": "#7EB26D", 10 | "id": 0, 11 | "pin": false, 12 | "type": "lucene", 13 | "enable": true 14 | }, 15 | "1": { 16 | "id": 1, 17 | "color": "#0A437C", 18 | "alias": "Search", 19 | "pin": false, 20 | "type": "lucene", 21 | "enable": true, 22 | "query": "operation_name=SRCH AND _exists_:search_base" 23 | }, 24 | "2": { 25 | "id": 2, 26 | "color": "#6ED0E0", 27 | "alias": "Unbind", 28 | "pin": false, 29 | "type": "lucene", 30 | "enable": true, 31 | "query": "operation_name:\"UNBIND\"" 32 | }, 33 | "3": { 34 | "id": 3, 35 | "color": "#EF843C", 36 | "alias": "Modify", 37 | "pin": false, 38 | "type": "lucene", 39 | "enable": true, 40 | "query": "operation_name:\"MOD\" AND _exists_:mod_dn" 41 | }, 42 | "4": { 43 | "id": 4, 44 | "color": "#E24D42", 45 | "alias": "Add", 46 | "pin": false, 47 | "type": "lucene", 48 | "enable": true, 49 | "query": "operation_name:\"ADD\"" 50 | }, 51 | "5": { 52 | "id": 5, 53 | "color": "#1F78C1", 54 | "alias": "Delete", 55 | "pin": false, 56 | "type": "lucene", 57 | "enable": true, 58 | "query": "operation_name:\"DEL\"" 59 | }, 60 | "6": { 61 | "id": 6, 62 | "color": "#BA43A9", 63 | "alias": "Rename", 64 | "pin": false, 65 | "type": "lucene", 66 | "enable": true, 67 | "query": "operation_name:\"MODRDN\"" 68 | }, 69 | "7": { 70 | "id": 7, 71 | "color": "#705DA0", 72 | "alias": "Extended", 73 | "pin": false, 74 | "type": "lucene", 75 | "enable": true, 76 | "query": "operation_name:\"EXT\"" 77 | }, 78 | "8": { 79 | "id": 8, 80 | "color": "#508642", 81 | "alias": "Compare", 82 | "pin": false, 83 | "type": "lucene", 84 | "enable": true, 85 | "query": "operation_name:\"CMP\"" 86 | }, 87 | "9": { 88 | "id": 9, 89 | "color": "#CCA300", 90 | "alias": "Abandon", 91 | "pin": false, 92 | "type": "lucene", 93 | "enable": true, 94 | "query": "operation_name:\"ABANDON\"" 95 | } 96 | }, 97 | "ids": [ 98 | 0, 99 | 1, 100 | 2, 101 | 3, 102 | 4, 103 | 5, 104 | 6, 105 | 7, 106 | 8, 107 | 9 108 | ] 109 | }, 110 | "filter": { 111 | "list": { 112 | "0": { 113 | "type": "time", 114 | "field": "@timestamp", 115 | "from": "now-15m", 116 | "to": "now", 117 | "mandate": "must", 118 | "active": true, 119 | "alias": "", 120 | "id": 0 121 | } 122 | }, 123 | "ids": [ 124 | 0 125 | ] 126 | } 127 | }, 128 | "rows": [ 129 | { 130 | "title": "Graph", 131 | "height": "350px", 132 | "editable": true, 133 | "collapse": false, 134 | "collapsable": true, 135 | "panels": [ 136 | { 137 | "span": 12, 138 | "editable": true, 139 | "group": [ 140 | "default" 141 | ], 142 | "type": "histogram", 143 | "mode": "count", 144 | "time_field": "@timestamp", 145 | "value_field": null, 146 | "auto_int": true, 147 | "resolution": 100, 148 | "interval": "10s", 149 | "fill": 3, 150 | "linewidth": 3, 151 | "timezone": "browser", 152 | "spyable": true, 153 | "zoomlinks": true, 154 | "bars": false, 155 | "stack": false, 156 | "points": false, 157 | "lines": true, 158 | "legend": true, 159 | "x-axis": true, 160 | "y-axis": true, 161 | "percentage": false, 162 | "interactive": true, 163 | "queries": { 164 | "mode": "all", 165 | "ids": [ 166 | 0, 167 | 1, 168 | 2, 169 | 3, 170 | 4, 171 | 5, 172 | 6, 173 | 7, 174 | 8, 175 | 9 176 | ] 177 | }, 178 | "title": "LDAP Operations", 179 | "intervals": [ 180 | "auto", 181 | "1s", 182 | "1m", 183 | "5m", 184 | "10m", 185 | "30m", 186 | "1h", 187 | "3h", 188 | "12h", 189 | "1d", 190 | "1w", 191 | "1M", 192 | "1y" 193 | ], 194 | "options": true, 195 | "tooltip": { 196 | "value_type": "individual", 197 | "query_as_alias": true 198 | }, 199 | "scale": 1, 200 | "y_format": "none", 201 | "grid": { 202 | "max": null, 203 | "min": 0 204 | }, 205 | "annotate": { 206 | "enable": false, 207 | "query": "*", 208 | "size": 20, 209 | "field": "_type", 210 | "sort": [ 211 | "_score", 212 | "desc" 213 | ] 214 | }, 215 | "pointradius": 5, 216 | "show_query": true, 217 | "legend_counts": true, 218 | "zerofill": true, 219 | "derivative": false, 220 | "scaleSeconds": true 221 | }, 222 | { 223 | "span": 12, 224 | "editable": true, 225 | "type": "sparklines", 226 | "loadingEditor": false, 227 | "mode": "count", 228 | "time_field": "@timestamp", 229 | "value_field": null, 230 | "interval": "1m", 231 | "spyable": true, 232 | "queries": { 233 | "mode": "all", 234 | "ids": [ 235 | 0, 236 | 1, 237 | 2, 238 | 3, 239 | 4, 240 | 5, 241 | 6, 242 | 7, 243 | 8, 244 | 9 245 | ] 246 | }, 247 | "title": "LDAP OPERATIONS" 248 | }, 249 | { 250 | "span": 8, 251 | "editable": true, 252 | "type": "histogram", 253 | "loadingEditor": false, 254 | "mode": "count", 255 | "time_field": "@timestamp", 256 | "value_field": null, 257 | "x-axis": true, 258 | "y-axis": true, 259 | "scale": 1, 260 | "y_format": "none", 261 | "grid": { 262 | "max": null, 263 | "min": 0 264 | }, 265 | "queries": { 266 | "mode": "all", 267 | "ids": [ 268 | 0, 269 | 1, 270 | 2, 271 | 3, 272 | 4, 273 | 5, 274 | 6, 275 | 7, 276 | 8, 277 | 9 278 | ] 279 | }, 280 | "annotate": { 281 | "enable": false, 282 | "query": "*", 283 | "size": 20, 284 | "field": "operation_name", 285 | "sort": [ 286 | "_score", 287 | "desc" 288 | ] 289 | }, 290 | "auto_int": true, 291 | "resolution": 100, 292 | "interval": "10s", 293 | "intervals": [ 294 | "auto", 295 | "1s", 296 | "1m", 297 | "5m", 298 | "10m", 299 | "30m", 300 | "1h", 301 | "3h", 302 | "12h", 303 | "1d", 304 | "1w", 305 | "1y" 306 | ], 307 | "lines": false, 308 | "fill": 0, 309 | "linewidth": 3, 310 | "points": false, 311 | "pointradius": 5, 312 | "bars": true, 313 | "stack": true, 314 | "spyable": true, 315 | "zoomlinks": true, 316 | "options": true, 317 | "legend": true, 318 | "show_query": true, 319 | "interactive": true, 320 | "legend_counts": true, 321 | "timezone": "browser", 322 | "percentage": true, 323 | "zerofill": true, 324 | "derivative": false, 325 | "tooltip": { 326 | "value_type": "individual", 327 | "query_as_alias": true 328 | }, 329 | "scaleSeconds": true, 330 | "title": "LDAP Operations" 331 | }, 332 | { 333 | "span": 4, 334 | "editable": true, 335 | "type": "hits", 336 | "loadingEditor": false, 337 | "style": { 338 | "font-size": "10pt" 339 | }, 340 | "arrangement": "horizontal", 341 | "chart": "pie", 342 | "counter_pos": "above", 343 | "donut": true, 344 | "tilt": false, 345 | "labels": true, 346 | "spyable": true, 347 | "queries": { 348 | "mode": "all", 349 | "ids": [ 350 | 0, 351 | 1, 352 | 2, 353 | 3, 354 | 4, 355 | 5, 356 | 6, 357 | 7, 358 | 8, 359 | 9 360 | ] 361 | }, 362 | "title": "LDAP Operations" 363 | }, 364 | { 365 | "error": false, 366 | "span": 12, 367 | "editable": true, 368 | "type": "terms", 369 | "loadingEditor": false, 370 | "field": "operation_name", 371 | "exclude": [], 372 | "missing": false, 373 | "other": false, 374 | "size": 10, 375 | "order": "count", 376 | "style": { 377 | "font-size": "10pt" 378 | }, 379 | "donut": false, 380 | "tilt": false, 381 | "labels": true, 382 | "arrangement": "horizontal", 383 | "chart": "bar", 384 | "counter_pos": "above", 385 | "spyable": true, 386 | "queries": { 387 | "mode": "all", 388 | "ids": [ 389 | 0, 390 | 1, 391 | 2, 392 | 3, 393 | 4, 394 | 5, 395 | 6, 396 | 7, 397 | 8, 398 | 9 399 | ] 400 | }, 401 | "tmode": "terms", 402 | "tstat": "total", 403 | "valuefield": "", 404 | "title": "LDAP OPERATIONS" 405 | } 406 | ], 407 | "notice": false 408 | }, 409 | { 410 | "title": "Events", 411 | "height": "350px", 412 | "editable": true, 413 | "collapse": false, 414 | "collapsable": true, 415 | "panels": [ 416 | { 417 | "title": "All events", 418 | "error": false, 419 | "span": 12, 420 | "editable": true, 421 | "group": [ 422 | "default" 423 | ], 424 | "type": "table", 425 | "size": 100, 426 | "pages": 5, 427 | "offset": 0, 428 | "sort": [ 429 | "@timestamp", 430 | "desc" 431 | ], 432 | "style": { 433 | "font-size": "12pt" 434 | }, 435 | "overflow": "min-height", 436 | "fields": [ 437 | "operation_name", 438 | "message" 439 | ], 440 | "localTime": true, 441 | "timeField": "@timestamp", 442 | "highlight": [ 443 | "operation_name" 444 | ], 445 | "sortable": true, 446 | "header": true, 447 | "paging": true, 448 | "spyable": true, 449 | "queries": { 450 | "mode": "all", 451 | "ids": [ 452 | 0, 453 | 1, 454 | 2, 455 | 3, 456 | 4, 457 | 5, 458 | 6, 459 | 7, 460 | 8, 461 | 9 462 | ] 463 | }, 464 | "field_list": true, 465 | "status": "Stable", 466 | "trimFactor": 300, 467 | "normTimes": true, 468 | "all_fields": false 469 | } 470 | ], 471 | "notice": false 472 | } 473 | ], 474 | "editable": true, 475 | "failover": false, 476 | "index": { 477 | "interval": "day", 478 | "pattern": "[logstash-]YYYY.MM.DD", 479 | "default": "NO_TIME_FILTER_OR_INDEX_PATTERN_NOT_MATCHED", 480 | "warm_fields": true 481 | }, 482 | "style": "dark", 483 | "panel_hints": true, 484 | "pulldowns": [ 485 | { 486 | "type": "query", 487 | "collapse": false, 488 | "notice": false, 489 | "query": "*", 490 | "pinned": true, 491 | "history": [ 492 | "operation_name:\"ABANDON\"", 493 | "operation_name:\"CMP\"", 494 | "operation_name:\"EXT\"", 495 | "operation_name:\"MODRDN\"", 496 | "operation_name:\"DEL\"", 497 | "operation_name:\"ADD\"", 498 | "operation_name:\"MOD\" AND _exists_:mod_dn", 499 | "operation_name:\"UNBIND\"", 500 | "operation_name=SRCH AND _exists_:search_base", 501 | "operation_name:\"BIND\" AND _exists_:bind_method" 502 | ], 503 | "remember": 10, 504 | "enable": true 505 | }, 506 | { 507 | "type": "filtering", 508 | "collapse": false, 509 | "notice": true, 510 | "enable": true 511 | } 512 | ], 513 | "nav": [ 514 | { 515 | "type": "timepicker", 516 | "collapse": false, 517 | "notice": false, 518 | "status": "Stable", 519 | "time_options": [ 520 | "5m", 521 | "15m", 522 | "1h", 523 | "6h", 524 | "12h", 525 | "24h", 526 | "2d", 527 | "7d", 528 | "30d" 529 | ], 530 | "refresh_intervals": [ 531 | "5s", 532 | "10s", 533 | "30s", 534 | "1m", 535 | "5m", 536 | "15m", 537 | "30m", 538 | "1h", 539 | "2h", 540 | "1d" 541 | ], 542 | "timefield": "@timestamp", 543 | "now": true, 544 | "filter_id": 0, 545 | "enable": true 546 | } 547 | ], 548 | "loader": { 549 | "save_gist": false, 550 | "save_elasticsearch": true, 551 | "save_local": true, 552 | "save_default": true, 553 | "save_temp": true, 554 | "save_temp_ttl_enable": true, 555 | "save_temp_ttl": "30d", 556 | "load_gist": true, 557 | "load_elasticsearch": true, 558 | "load_elasticsearch_size": 20, 559 | "load_local": true, 560 | "hide": false 561 | }, 562 | "refresh": false 563 | } 564 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | --------------------------------------------------------------------------------