Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ingest pipeline #227

Closed
Alisher-Nabiev opened this issue Aug 5, 2024 · 3 comments
Closed

ingest pipeline #227

Alisher-Nabiev opened this issue Aug 5, 2024 · 3 comments

Comments

@Alisher-Nabiev
Copy link

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.

@lmangani
Copy link
Member

lmangani commented Aug 5, 2024

I'm afraid we can't help with any such aspect but If you have a proposed solution, we might be able to implement it.

@Alisher-Nabiev
Copy link
Author

Alisher-Nabiev commented Aug 5, 2024

@lmangani
Copy link
Member

lmangani commented Aug 9, 2024

I don't know what you mean or require here. I guess this is not about pastash but rather about Elasticsearch since we don't do anything about the request body and/or its fields.

@lmangani lmangani closed this as completed Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants