Skip to content

ingest pipeline #227

@Alisher-Nabiev

Description

@Alisher-Nabiev

Hi, I am having trouble using an ingest pipeline. I can manually run the pipeline when reindexing the index, but I can't automatically ingest my index during creation.

this is my conf:
output {

elasticsearch {
host => 0.0.0.0
port => 9200
bulk_limit => 1000
bulk_timeout => 100
index_prefix => netflow
pipeline => imei-pipeline
data_type => netflow

testing my pipeline :
POST /_ingest/pipeline/imei-pipeline/_simulate
{
"docs": [
{
"_source": {
"ipv4_src_addr": "10.1.1.1"
}
}
]
}

res:
{
"docs" : [
{
"doc" : {
"_index" : "_index",
"_type" : "_doc",
"_id" : "_id",
"_source" : {
"ipv4_src_addr" : "10.1.1.1",
"customer" : {
"ipv4_src_addr" : "10.1.1.1",
"IMEI" : "89898989898989",
"CustomerName" : "some_brend",
"ThingId" : "ThingId_ICCID_89898989898989"
}
},
"_ingest" : {
"timestamp" : "2024-08-05T12:10:28.478468965Z"
}
}
}
]
}

when using reindex command:
POST /_reindex?wait_for_completion=false
{
"source": {
"index": "netflow-2024.08.02"
},
"dest": {
"index": "enriched_netflow-2024.08.02",
"pipeline": "imei-pipeline"
}
}


so my main goal is to ingest the netflow index to be created from the beginning with the data from the pipeline (IMEI, customer,CustomerNam, ThingId) and avoid reindexing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions