broad-summer-18536
10/20/2023, 2:36 AMrich-barista-93413
10/24/2023, 7:35 AMbroad-summer-18536
10/25/2023, 2:01 AMgray-shoe-75895
10/25/2023, 6:13 AMbroad-summer-18536
10/25/2023, 10:15 AMindex_pattern:
allow: ["^\\.*"]
but the filtered list shows empty too,
btw, I use datahub with the version 0.11.0.5broad-summer-18536
10/25/2023, 10:18 AMlogstash
I've also set
index_pattern:
allow: ["logstash"]broad-summer-18536
10/25/2023, 10:19 AMdatahub ingest -c elasticsearch.dhub.yamlbroad-summer-18536
10/25/2023, 10:21 AMaloof-gpu-11378
10/27/2023, 4:45 AMdatahub --debug ingest ... to see if we ever see that index name in the first place?broad-summer-18536
10/27/2023, 6:30 AMbroad-summer-18536
10/27/2023, 6:39 AM# Options
url_prefix: "" # optional url_prefix
env: "PROD"
index_pattern:
allow: ["^.*"]
broad-summer-18536
10/27/2023, 7:10 AMroot@datahub-test-by-walter:~/.datahub# python
Python 3.10.12 (main, Jun 11 2023, 052628) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from elasticsearch import Elasticsearch
>>> client = Elasticsearch("XXXXXXXX", use_ssl=False)
>>> client.indices.get_alias("*")
broad-summer-18536
10/27/2023, 7:46 AMlogstash to logs and update the index_pattern to allow: ["logs"] ,
I got error while ingestion
> File "/usr/local/lib/python3.10/dist-packages/datahub/ingestion/source/elastic_search.py", line 373, in get_workunits_internal
> for mcp in self._extract_mcps(index, is_index=True):
> File "/usr/local/lib/python3.10/dist-packages/datahub/ingestion/source/elastic_search.py", line 414, in _extract_mcps
> raw_index_metadata = raw_index[index]
> KeyError: 'logstash'
it seems that because the indices in my data stream logstash are named like .ds-logstash-2023.10.27-000014 or .ds-logstash-2023.10.27-000015
the index metadata would be:
> {
> "`.ds-logstash-2023.10.27-000014`": {...}
> "`.ds-logstash-2023.10.27-000015`": {...}
> ...
> }
so the raw_index_metadata = raw_index[index] can't find any matching key if I set the index_pattern to allow: ["logs"] (it would try to run like raw_index_metadata = raw_index["logstash"])
https://github.com/datahub-project/datahub/blob/c38bb91519e0005f6e8a0a2d648bd1c77f[…]tadata-ingestion/src/datahub/ingestion/source/elastic_search.py
Any idea I can try to let the datahub cli fetch those indices in data stream~?
Many appreciate for your help ><rich-barista-93413
11/07/2023, 6:41 PMbroad-summer-18536
11/09/2023, 1:43 AM