Comments (3)
@moharana-subhashree I could be wrong, but I don't think the plugin is actually capable of knowing that you want a data stream here, and it implies that you should create that data stream index yourself. Does that work?
In that case we should 1) turn this into a feature request, 2) document this better in https://opensearch.org/docs/latest/tools/logstash/ship-to-opensearch/#data-streams
from logstash-output-opensearch.
hi @dblock,
as in the above post, it is concluded that the creation of data stream on ourselves is mandatory and doesn't support creating it dynamically by the plugin for now.
Recently i was trying below opensearch configuration as below to create a legacy index template as part of the opensearch configurations as below
output {
opensearch {
hosts => "http://localhost:9200"
index => "logs"
action => "create"
document_id => "%{id0}"
template_name => "cas-template"
template => "/usr/share/logstash/pipeline/template/cas-template.json"
manage_template => "true"
template_overwrite => "true"
}
}
I have a legacy index template format as below provided in the configurations:
{
"index_patterns": ["logs-*"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"mappings": {
"properties": {
"timestamp": {
"type": "date"
},
"message": {
"type": "text"
}
}
},
"aliases": {
"logstash": {}
}
}
but with this configuration it ideally shall create a index template and that index template could be used for data stream creation, is my understanding correct? will this be a right way to proceed?
from logstash-output-opensearch.
but with this configuration it ideally shall create a index template and that index template could be used for data stream creation, is my understanding correct? will this be a right way to proceed?
Yes, I can't think of a reason why one would not want this, so this is a feature request. I'll rename the issue.
from logstash-output-opensearch.
Related Issues (20)
- Include an offline logstash zip in the release
- Could not connect to a compatible version of Elasticsearch - Opensearch 2.9.0-1 - Logstash OutputPlugin 8.9.0 HOT 2
- [BUG] Getting code 400 in logstash with http_compression enabled HOT 1
- [v2.12.0] Ensure CI/documentation reflect changes to default admin credentials
- Build using logstash >=8.10 HOT 5
- [BUG] Unexpected behaviour if remote Opensearch response is not "common" HOT 2
- [BUG] 503 Error encountered during the upgrade of Logstash from version 8.10.4 to 8.12.1 HOT 3
- [QUESTION] logstash appending 9200 to opensearch endpoint in k8s HOT 1
- [QUESTION] Clarification on Data Processing Order During Outages HOT 2
- Lower the number of required approvers for CRs to 1 HOT 4
- upload of logstash-oss-with-opensearch-plugin docker container version 8.12 HOT 2
- [BUG] In case of multiple end-points defined in opensearch.hosts - the events are being distributed using a round-robin mechanism instead of being sent to all endpoints HOT 2
- [BUG] Enabling this plugin affect the elasticsearch output (Only Opensearch output works) HOT 1
- Unable to create template on open search 1.3 getting 400 error HOT 13
- Document building and debugging logstash-output-opensearch
- Add detail reported with 400 errors
- Release v. Next HOT 5
- Update to latest logstash 8.14.1 HOT 1
- [BUG] OpenSearch 2.15 with ssl HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logstash-output-opensearch.