Advertisement
Guest User

new index mapping

a guest
May 4th, 2017
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 17.56 KB | None | 0 0
  1. {
  2.   "logstash-api-2016.02.16": {
  3.     "mappings": {
  4.       "api": {
  5.         "dynamic": "true",
  6.         "_all": {
  7.           "enabled": true,
  8.           "norms": false
  9.         },
  10.         "dynamic_templates": [
  11.           {
  12.             "message_field": {
  13.               "path_match": "message",
  14.               "match_mapping_type": "string",
  15.               "mapping": {
  16.                 "norms": false,
  17.                 "type": "text"
  18.               }
  19.             }
  20.           },
  21.           {
  22.             "string_fields": {
  23.               "match": "*",
  24.               "match_mapping_type": "string",
  25.               "mapping": {
  26.                 "fields": {
  27.                   "keyword": {
  28.                     "type": "keyword"
  29.                   }
  30.                 },
  31.                 "norms": false,
  32.                 "type": "text"
  33.               }
  34.             }
  35.           }
  36.         ],
  37.         "properties": {
  38.           "@timestamp": {
  39.             "type": "date",
  40.             "include_in_all": false,
  41.             "format": "dateOptionalTime"
  42.           },
  43.           "@version": {
  44.             "type": "text",
  45.             "include_in_all": false
  46.           },
  47.           "clientip": {
  48.             "type": "ip"
  49.           },
  50.           "data": {
  51.             "properties": {
  52.               "action": {
  53.                 "type": "text"
  54.               },
  55.               "ageType": {
  56.                 "type": "text"
  57.               },
  58.               "airCompany": {
  59.                 "type": "text"
  60.               },
  61.               "allFares": {
  62.                 "type": "long"
  63.               },
  64.               "alt_agent": {
  65.                 "type": "text"
  66.               },
  67.               "alt_search_amount": {
  68.                 "type": "double"
  69.               },
  70.               "amount": {
  71.                 "type": "double"
  72.               },
  73.               "atcResult": {
  74.                 "type": "text"
  75.               },
  76.               "attempts": {
  77.                 "type": "long"
  78.               },
  79.               "availSources": {
  80.                 "type": "text"
  81.               },
  82.               "backend": {
  83.                 "type": "text"
  84.               },
  85.               "bid": {
  86.                 "type": "text"
  87.               },
  88.               "body": {
  89.                 "type": "text"
  90.               },
  91.               "classes": {
  92.                 "type": "text"
  93.               },
  94.               "clientId": {
  95.                 "type": "text"
  96.               },
  97.               "codeShareExists": {
  98.                 "type": "boolean"
  99.               },
  100.               "confirmationId": {
  101.                 "type": "text"
  102.               },
  103.               "cookie_accept_language": {
  104.                 "type": "text"
  105.               },
  106.               "cookie_currency": {
  107.                 "type": "text"
  108.               },
  109.               "cookie_referrer": {
  110.                 "type": "text"
  111.               },
  112.               "cookie_referrer_mrk": {
  113.                 "type": "text"
  114.               },
  115.               "cookie_srcmarker": {
  116.                 "type": "text"
  117.               },
  118.               "cookie_vid": {
  119.                 "type": "text"
  120.               },
  121.               "currency": {
  122.                 "type": "text"
  123.               },
  124.               "dCode": {
  125.                 "type": "text"
  126.               },
  127.               "dDate": {
  128.                 "type": "text"
  129.               },
  130.               "dLocation": {
  131.                 "type": "text"
  132.               },
  133.               "dTime": {
  134.                 "type": "text"
  135.               },
  136.               "dates": {
  137.                 "type": "text"
  138.               },
  139.               "depth": {
  140.                 "type": "long"
  141.               },
  142.               "diff": {
  143.                 "type": "double"
  144.               },
  145.               "error": {
  146.                 "type": "boolean"
  147.               },
  148.               "errorOnSearch": {
  149.                 "type": "boolean"
  150.               },
  151.               "errorTimeout": {
  152.                 "type": "long"
  153.               },
  154.               "error_msg": {
  155.                 "type": "text"
  156.               },
  157.               "event": {
  158.                 "type": "text"
  159.               },
  160.               "fareDifference": {
  161.                 "type": "long"
  162.               },
  163.               "fareInfoBase": {
  164.                 "type": "long"
  165.               },
  166.               "fareInfoTaxes": {
  167.                 "type": "long"
  168.               },
  169.               "fareInfoTotal": {
  170.                 "type": "long"
  171.               },
  172.               "fqbbRebookInfo": {
  173.                 "type": "object"
  174.               },
  175.               "fromCache": {
  176.                 "type": "boolean"
  177.               },
  178.               "galileoBase": {
  179.                 "type": "long"
  180.               },
  181.               "galileoReservationId": {
  182.                 "type": "text"
  183.               },
  184.               "galileoTaxes": {
  185.                 "type": "long"
  186.               },
  187.               "galileoTotal": {
  188.                 "type": "long"
  189.               },
  190.               "gds": {
  191.                 "type": "text"
  192.               },
  193.               "gdsTag": {
  194.                 "type": "text"
  195.               },
  196.               "id": {
  197.                 "type": "text"
  198.               },
  199.               "info": {
  200.                 "type": "text"
  201.               },
  202.               "ip": {
  203.                 "type": "text"
  204.               },
  205.               "ip_type": {
  206.                 "type": "text"
  207.               },
  208.               "lavg1": {
  209.                 "type": "double"
  210.               },
  211.               "lavg15": {
  212.                 "type": "double"
  213.               },
  214.               "lavg5": {
  215.                 "type": "double"
  216.               },
  217.               "logUrl": {
  218.                 "type": "text"
  219.               },
  220.               "login": {
  221.                 "type": "text"
  222.               },
  223.               "memused": {
  224.                 "type": "double"
  225.               },
  226.               "messageId": {
  227.                 "type": "text"
  228.               },
  229.               "mode": {
  230.                 "type": "text"
  231.               },
  232.               "name": {
  233.                 "type": "text"
  234.               },
  235.               "names": {
  236.                 "type": "text"
  237.               },
  238.               "next": {
  239.                 "type": "text"
  240.               },
  241.               "numFares": {
  242.                 "type": "long"
  243.               },
  244.               "openDropoff": {
  245.                 "type": "boolean"
  246.               },
  247.               "operatingAirCompany": {
  248.                 "type": "text"
  249.               },
  250.               "ordersProcessed": {
  251.                 "type": "long"
  252.               },
  253.               "pCode": {
  254.                 "type": "text"
  255.               },
  256.               "pDate": {
  257.                 "type": "text"
  258.               },
  259.               "pLocation": {
  260.                 "type": "text"
  261.               },
  262.               "pTime": {
  263.                 "type": "text"
  264.               },
  265.               "params": {
  266.                 "properties": {
  267.                   "_": {
  268.                     "type": "text"
  269.                   },
  270.                   "clientId": {
  271.                     "type": "text"
  272.                   },
  273.                   "phoneNumber": {
  274.                     "type": "text"
  275.                   }
  276.                 }
  277.               },
  278.               "passengersCount": {
  279.                 "type": "long"
  280.               },
  281.               "pcc": {
  282.                 "type": "text"
  283.               },
  284.               "platingCarrier": {
  285.                 "type": "text"
  286.               },
  287.               "pnr": {
  288.                 "type": "text"
  289.               },
  290.               "post_customerLanguage": {
  291.                 "type": "text"
  292.               },
  293.               "post_email": {
  294.                 "type": "text"
  295.               },
  296.               "post_gdsInfo": {
  297.                 "type": "text"
  298.               },
  299.               "post_promo": {
  300.                 "type": "text"
  301.               },
  302.               "post_source": {
  303.                 "type": "text"
  304.               },
  305.               "post_srcmarker": {
  306.                 "type": "text"
  307.               },
  308.               "priceIncreased": {
  309.                 "type": "boolean"
  310.               },
  311.               "process": {
  312.                 "type": "text"
  313.               },
  314.               "processResolution": {
  315.                 "type": "text"
  316.               },
  317.               "proxy": {
  318.                 "type": "text"
  319.               },
  320.               "proxy_provider": {
  321.                 "type": "text"
  322.               },
  323.               "proxy_select": {
  324.                 "type": "long"
  325.               },
  326.               "queue_len": {
  327.                 "type": "long"
  328.               },
  329.               "rate": {
  330.                 "type": "long"
  331.               },
  332.               "rates": {
  333.                 "type": "long"
  334.               },
  335.               "request": {
  336.                 "type": "text"
  337.               },
  338.               "reseller": {
  339.                 "type": "text"
  340.               },
  341.               "reservationCreationParams": {
  342.                 "type": "text"
  343.               },
  344.               "reservationId": {
  345.                 "type": "text"
  346.               },
  347.               "resolution": {
  348.                 "type": "text"
  349.               },
  350.               "route": {
  351.                 "type": "text"
  352.               },
  353.               "saved": {
  354.                 "type": "long"
  355.               },
  356.               "searchId": {
  357.                 "type": "text"
  358.               },
  359.               "searchType": {
  360.                 "type": "text"
  361.               },
  362.               "search_agent": {
  363.                 "type": "text"
  364.               },
  365.               "search_amount": {
  366.                 "type": "double"
  367.               },
  368.               "search_amount_alt_currency": {
  369.                 "type": "double"
  370.               },
  371.               "search_currency": {
  372.                 "type": "text"
  373.               },
  374.               "senderAddr": {
  375.                 "type": "text"
  376.               },
  377.               "senderName": {
  378.                 "type": "text"
  379.               },
  380.               "site": {
  381.                 "type": "text"
  382.               },
  383.               "source": {
  384.                 "type": "text"
  385.               },
  386.               "sourceId": {
  387.                 "type": "text"
  388.               },
  389.               "started": {
  390.                 "type": "long"
  391.               },
  392.               "subject": {
  393.                 "type": "text"
  394.               },
  395.               "tag": {
  396.                 "type": "text"
  397.               },
  398.               "tasks": {
  399.                 "type": "long"
  400.               },
  401.               "taxDifference": {
  402.                 "type": "long"
  403.               },
  404.               "threads": {
  405.                 "type": "long"
  406.               },
  407.               "timing": {
  408.                 "type": "long"
  409.               },
  410.               "timings": {
  411.                 "properties": {
  412.                   "cache": {
  413.                     "type": "long"
  414.                   },
  415.                   "main": {
  416.                     "type": "long"
  417.                   },
  418.                   "s1": {
  419.                     "type": "long"
  420.                   },
  421.                   "s2": {
  422.                     "type": "long"
  423.                   },
  424.                   "s3": {
  425.                     "type": "long"
  426.                   },
  427.                   "s4": {
  428.                     "type": "long"
  429.                   },
  430.                   "total": {
  431.                     "type": "long"
  432.                   }
  433.                 }
  434.               },
  435.               "to": {
  436.                 "type": "text"
  437.               },
  438.               "trackingId": {
  439.                 "type": "text"
  440.               },
  441.               "transmission": {
  442.                 "type": "text"
  443.               },
  444.               "tripAirlines": {
  445.                 "properties": {
  446.                   "trip_0": {
  447.                     "type": "text"
  448.                   },
  449.                   "trip_1": {
  450.                     "type": "text"
  451.                   },
  452.                   "trip_2": {
  453.                     "type": "text"
  454.                   },
  455.                   "trip_3": {
  456.                     "type": "text"
  457.                   },
  458.                   "trip_4": {
  459.                     "type": "text"
  460.                   },
  461.                   "trip_5": {
  462.                     "type": "text"
  463.                   }
  464.                 }
  465.               },
  466.               "trip_0_class": {
  467.                 "type": "text"
  468.               },
  469.               "trip_0_marketing": {
  470.                 "type": "text"
  471.               },
  472.               "trip_0_operating": {
  473.                 "type": "text"
  474.               },
  475.               "trip_1_class": {
  476.                 "type": "text"
  477.               },
  478.               "trip_1_marketing": {
  479.                 "type": "text"
  480.               },
  481.               "trip_1_operating": {
  482.                 "type": "text"
  483.               },
  484.               "trip_2_class": {
  485.                 "type": "text"
  486.               },
  487.               "trip_2_marketing": {
  488.                 "type": "text"
  489.               },
  490.               "trip_2_operating": {
  491.                 "type": "text"
  492.               },
  493.               "trip_3_class": {
  494.                 "type": "text"
  495.               },
  496.               "trip_3_marketing": {
  497.                 "type": "text"
  498.               },
  499.               "trip_3_operating": {
  500.                 "type": "text"
  501.               },
  502.               "trip_4_class": {
  503.                 "type": "text"
  504.               },
  505.               "trip_4_marketing": {
  506.                 "type": "text"
  507.               },
  508.               "trip_4_operating": {
  509.                 "type": "text"
  510.               },
  511.               "trip_5_class": {
  512.                 "type": "text"
  513.               },
  514.               "trip_5_marketing": {
  515.                 "type": "text"
  516.               },
  517.               "trip_5_operating": {
  518.                 "type": "text"
  519.               },
  520.               "type": {
  521.                 "type": "text"
  522.               },
  523.               "userId": {
  524.                 "type": "text"
  525.               },
  526.               "value": {
  527.                 "type": "long"
  528.               }
  529.             }
  530.           },
  531.           "env": {
  532.             "type": "text"
  533.           },
  534.           "fields": {
  535.             "properties": {
  536.               "name": {
  537.                 "type": "text",
  538.                 "norms": false,
  539.                 "fields": {
  540.                   "keyword": {
  541.                     "type": "keyword"
  542.                   }
  543.                 }
  544.               },
  545.               "pid": {
  546.                 "type": "long"
  547.               },
  548.               "type": {
  549.                 "type": "text",
  550.                 "norms": false,
  551.                 "fields": {
  552.                   "keyword": {
  553.                     "type": "keyword"
  554.                   }
  555.                 }
  556.               }
  557.             }
  558.           },
  559.           "geoip": {
  560.             "dynamic": "true",
  561.             "properties": {
  562.               "continent_code": {
  563.                 "type": "keyword"
  564.               },
  565.               "country_name": {
  566.                 "type": "keyword"
  567.               },
  568.               "ip": {
  569.                 "type": "ip"
  570.               },
  571.               "latitude": {
  572.                 "type": "half_float"
  573.               },
  574.               "location": {
  575.                 "type": "geo_point"
  576.               },
  577.               "longitude": {
  578.                 "type": "half_float"
  579.               }
  580.             }
  581.           },
  582.           "host": {
  583.             "type": "text"
  584.           },
  585.           "message": {
  586.             "type": "text"
  587.           },
  588.           "msgId": {
  589.             "type": "text"
  590.           },
  591.           "request_time": {
  592.             "type": "float"
  593.           },
  594.           "role": {
  595.             "type": "text"
  596.           },
  597.           "source_host": {
  598.             "type": "text"
  599.           },
  600.           "type": {
  601.             "type": "text"
  602.           }
  603.         }
  604.       },
  605.       "_default_": {
  606.         "dynamic": "true",
  607.         "_all": {
  608.           "enabled": true,
  609.           "norms": false
  610.         },
  611.         "dynamic_templates": [
  612.           {
  613.             "message_field": {
  614.               "path_match": "message",
  615.               "match_mapping_type": "string",
  616.               "mapping": {
  617.                 "norms": false,
  618.                 "type": "text"
  619.               }
  620.             }
  621.           },
  622.           {
  623.             "string_fields": {
  624.               "match": "*",
  625.               "match_mapping_type": "string",
  626.               "mapping": {
  627.                 "fields": {
  628.                   "keyword": {
  629.                     "type": "keyword"
  630.                   }
  631.                 },
  632.                 "norms": false,
  633.                 "type": "text"
  634.               }
  635.             }
  636.           }
  637.         ],
  638.         "properties": {
  639.           "@timestamp": {
  640.             "type": "date",
  641.             "include_in_all": false
  642.           },
  643.           "@version": {
  644.             "type": "keyword",
  645.             "include_in_all": false
  646.           },
  647.           "clientip": {
  648.             "type": "ip"
  649.           },
  650.           "geoip": {
  651.             "dynamic": "true",
  652.             "properties": {
  653.               "continent_code": {
  654.                 "type": "keyword"
  655.               },
  656.               "country_name": {
  657.                 "type": "keyword"
  658.               },
  659.               "ip": {
  660.                 "type": "ip"
  661.               },
  662.               "latitude": {
  663.                 "type": "half_float"
  664.               },
  665.               "location": {
  666.                 "type": "geo_point"
  667.               },
  668.               "longitude": {
  669.                 "type": "half_float"
  670.               }
  671.             }
  672.           },
  673.           "request_time": {
  674.             "type": "float"
  675.           }
  676.         }
  677.       }
  678.     }
  679.   }
  680. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement