Elasticsearch - Pass index parameters?

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Google Ads


Elasticsearch - Pass index parameters?

Postby clayfiske » Wed Sep 06, 2017 6:21 am

Hi all,

I am trying to understand if there is a way using the omelasticsearch module to specify a custom _id field in the call to Elasticsearch. In URL form it would look like this:

Code: Select all
curl -XPOST localhost:9200/_bulk -d '
{"index": {"_index": "index", "_type": "type", "_id": "your_id"}}
{"field1": "value1"}
'


But in the omelasticsearch action or template I don't know where that would fit in. Is this possible to do?

Thanks
clayfiske
New
 
Posts: 3
Joined: Wed Sep 06, 2017 5:29 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: Elasticsearch - Pass index parameters?

Postby clayfiske » Mon Sep 11, 2017 11:09 pm

Hmm, while I can't find much actual documentation around it (seems to be a new feature?) there appears to be a way to specify a template for the _id field in the omelasticsearch config. I haven't tracked down which version added this, but if it's in a version for which I can find a package I will try that out.

Please disregard my previous question.
clayfiske
New
 
Posts: 3
Joined: Wed Sep 06, 2017 5:29 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron