Skip to content

Commit

Permalink
Revert "Use deprecated _source mode mapping attribute instead"
Browse files Browse the repository at this point in the history
This reverts commit 808b587.
  • Loading branch information
martijnvg committed Oct 21, 2024
1 parent 808b587 commit 38ce118
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
{% endif %}
}
{% endif %}
},
"mappings": {
{% if source_mode %}
"_source": {
"mapping.source.mode": {{ source_mode | tojson }}
}
{% endif %}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,14 @@
{% if synthetic_source_keep and synthetic_source_keep != 'none' %}
"mapping.synthetic_source_keep": {{ synthetic_source_keep | tojson}},
{% endif %}
{% if source_mode %}
"mapping.source.mode": {{ source_mode | tojson }},
{% endif %}
"sort.field": [ "host.id", "@timestamp" ],
"sort.order": [ "asc", "desc" ],
"sort.missing": ["_first", "_last"]
}
{% endif %}
},
"mappings": {
{% if source_mode %}
"_source": {
"mapping.source.mode": {{ source_mode | tojson }}
}
{% endif %}
}
}
}
6 changes: 3 additions & 3 deletions http_logs/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{% if synthetic_source_keep %}
"index.mapping.synthetic_source_keep": "{{synthetic_source_keep}}",
{% endif %}
{% if source_mode %}
"index.mapping.source.mode": {{ source_mode | tojson }},
{% endif %}
"index.sort.field": ["@timestamp"],
"index.sort.order":["desc"]
{%- endif %}
Expand All @@ -20,9 +23,6 @@
{%- else %}
"_source": {
"enabled": {{ source_enabled | default(true) | tojson }}
{% if source_mode %}
"mode": {{ source_mode | tojson }},
{% endif %}
},
{%- endif %}
"properties": {
Expand Down

0 comments on commit 38ce118

Please sign in to comment.