Advertisement
Guest User

Nginx Template

a guest
Sep 28th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.57 KB | None | 0 0
  1. {
  2.   "mappings": {
  3.     "_default_": {
  4.       "_all": {
  5.         "norms": false
  6.       },
  7.       "_meta": {
  8.         "version": "5.5.1"
  9.       },
  10.       "date_detection": false,
  11.       "dynamic_templates": [
  12.         {
  13.           "strings_as_keyword": {
  14.             "mapping": {
  15.               "ignore_above": 1024,
  16.               "type": "keyword"
  17.             },
  18.             "match_mapping_type": "string"
  19.           }
  20.         }
  21.       ],
  22.       "properties": {
  23.         "@timestamp": {
  24.           "type": "date"
  25.         },
  26.         "nginx": {
  27.           "properties": {
  28.             "access": {
  29.               "properties": {
  30.                 "agent": {
  31.                   "norms": false,
  32.                   "type": "text"
  33.                 },
  34.                 "body_sent": {
  35.                   "properties": {
  36.                     "bytes": {
  37.                       "type": "long"
  38.                     }
  39.                   }
  40.                 },
  41.                 "geoip": {
  42.                   "properties": {
  43.                     "continent_name": {
  44.                       "ignore_above": 1024,
  45.                       "type": "keyword"
  46.                     },
  47.                     "country_iso_code": {
  48.                       "ignore_above": 1024,
  49.                       "type": "keyword"
  50.                     },
  51.                     "location": {
  52.                       "type": "geo_point"
  53.                     }
  54.                   }
  55.                 },
  56.                 "http_version": {
  57.                   "ignore_above": 1024,
  58.                   "type": "keyword"
  59.                 },
  60.                 "method": {
  61.                   "ignore_above": 1024,
  62.                   "type": "keyword"
  63.                 },
  64.                 "referrer": {
  65.                   "ignore_above": 1024,
  66.                   "type": "keyword"
  67.                 },
  68.                 "remote_ip": {
  69.                   "ignore_above": 1024,
  70.                   "type": "keyword"
  71.                 },
  72.                 "response_code": {
  73.                   "type": "long"
  74.                 },
  75.                 "url": {
  76.                   "ignore_above": 1024,
  77.                   "type": "keyword"
  78.                 },
  79.                 "user_agent": {
  80.                   "properties": {
  81.                     "device": {
  82.                       "ignore_above": 1024,
  83.                       "type": "keyword"
  84.                     },
  85.                     "major": {
  86.                       "type": "long"
  87.                     },
  88.                     "minor": {
  89.                       "type": "long"
  90.                     },
  91.                     "name": {
  92.                       "ignore_above": 1024,
  93.                       "type": "keyword"
  94.                     },
  95.                     "os": {
  96.                       "ignore_above": 1024,
  97.                       "type": "keyword"
  98.                     },
  99.                     "os_major": {
  100.                       "type": "long"
  101.                     },
  102.                     "os_minor": {
  103.                       "type": "long"
  104.                     },
  105.                     "os_name": {
  106.                       "ignore_above": 1024,
  107.                       "type": "keyword"
  108.                     },
  109.                     "patch": {
  110.                       "ignore_above": 1024,
  111.                       "type": "keyword"
  112.                     }
  113.                   }
  114.                 },
  115.                 "user_name": {
  116.                   "ignore_above": 1024,
  117.                   "type": "keyword"
  118.                 }
  119.               }
  120.             },
  121.             "timings": {
  122.               "properties": {
  123.                 "agent": {
  124.                   "norms": false,
  125.                   "type": "text"
  126.                 },
  127.                 "body_sent": {
  128.                   "properties": {
  129.                     "bytes": {
  130.                       "type": "long"
  131.                     }
  132.                   }
  133.                 },
  134.                 "geoip": {
  135.                   "properties": {
  136.                     "continent_name": {
  137.                       "ignore_above": 1024,
  138.                       "type": "keyword"
  139.                     },
  140.                     "country_iso_code": {
  141.                       "ignore_above": 1024,
  142.                       "type": "keyword"
  143.                     },
  144.                     "location": {
  145.                       "type": "geo_point"
  146.                     }
  147.                   }
  148.                 },
  149.                 "http_version": {
  150.                   "ignore_above": 1024,
  151.                   "type": "keyword"
  152.                 },
  153.                 "method": {
  154.                   "ignore_above": 1024,
  155.                   "type": "keyword"
  156.                 },
  157.                 "referrer": {
  158.                   "ignore_above": 1024,
  159.                   "type": "keyword"
  160.                 },
  161.                 "remote_ip": {
  162.                   "ignore_above": 1024,
  163.                   "type": "keyword"
  164.                 },
  165.                 "response_code": {
  166.                   "type": "long"
  167.                 },
  168.                 "url": {
  169.                   "ignore_above": 1024,
  170.                   "type": "keyword"
  171.                 },
  172.                 "user_agent": {
  173.                   "properties": {
  174.                     "device": {
  175.                       "ignore_above": 1024,
  176.                       "type": "keyword"
  177.                     },
  178.                     "major": {
  179.                       "type": "long"
  180.                     },
  181.                     "minor": {
  182.                       "type": "long"
  183.                     },
  184.                     "name": {
  185.                       "ignore_above": 1024,
  186.                       "type": "keyword"
  187.                     },
  188.                     "os": {
  189.                       "ignore_above": 1024,
  190.                       "type": "keyword"
  191.                     },
  192.                     "os_major": {
  193.                       "type": "long"
  194.                     },
  195.                     "os_minor": {
  196.                       "type": "long"
  197.                     },
  198.                     "os_name": {
  199.                       "ignore_above": 1024,
  200.                       "type": "keyword"
  201.                     },
  202.                     "patch": {
  203.                       "ignore_above": 1024,
  204.                       "type": "keyword"
  205.                     }
  206.                   }
  207.                 },
  208.                 "user_name": {
  209.                   "ignore_above": 1024,
  210.                   "type": "keyword"
  211.                 }
  212.               }
  213.             },
  214.             "error": {
  215.               "properties": {
  216.                 "connection_id": {
  217.                   "type": "long"
  218.                 },
  219.                 "level": {
  220.                   "ignore_above": 1024,
  221.                   "type": "keyword"
  222.                 },
  223.                 "message": {
  224.                   "norms": false,
  225.                   "type": "text"
  226.                 },
  227.                 "pid": {
  228.                   "type": "long"
  229.                 },
  230.                 "tid": {
  231.                   "type": "long"
  232.                 }
  233.               }
  234.             }
  235.           }
  236.         },
  237.         "offset": {
  238.           "type": "long"
  239.         },
  240.         "read_timestamp": {
  241.           "ignore_above": 1024,
  242.           "type": "keyword"
  243.         },
  244.         "source": {
  245.           "ignore_above": 1024,
  246.           "type": "keyword"
  247.         },
  248.         "tags": {
  249.           "ignore_above": 1024,
  250.           "type": "keyword"
  251.         },
  252.         "type": {
  253.           "ignore_above": 1024,
  254.           "type": "keyword"
  255.         }
  256.       }
  257.     }
  258.   },
  259.   "order": 0,
  260.   "settings": {
  261.     "index.mapping.total_fields.limit": 10000,
  262.     "index.refresh_interval": "5s"
  263.   },
  264.   "template": "nginx-*"
  265. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement