diff --git a/config/tutorials/vector-otel-logs/vector.toml b/config/tutorials/vector-otel-logs/vector.toml index 8997389f82..e3f82b408f 100644 --- a/config/tutorials/vector-otel-logs/vector.toml +++ b/config/tutorials/vector-otel-logs/vector.toml @@ -46,4 +46,4 @@ method = "post" inputs = ["remap_syslog"] encoding.codec = "json" framing.method = "newline_delimited" -uri = "http://127.0.0.1:7280/api/v1/otel-logs-v0_6/ingest" +uri = "http://127.0.0.1:7280/api/v1/otel-logs-v0_7/ingest" diff --git a/docs/log-management/send-logs/using-vector.md b/docs/log-management/send-logs/using-vector.md index 3b151c54e5..55a9ac2f25 100644 --- a/docs/log-management/send-logs/using-vector.md +++ b/docs/log-management/send-logs/using-vector.md @@ -123,7 +123,7 @@ search_settings: ## Setup Vector -Our sink here will be Quickwit ingest API `http://127.0.0.1:7280/api/v1/otel-logs-v0_6/ingest`. +Our sink here will be Quickwit ingest API `http://127.0.0.1:7280/api/v1/otel-logs-v0_7/ingest`. To keep it simple in this tutorial, we will use a log source called `demo_logs` that generates logs in a given format. Let's choose the common `syslog` format (Vector does not generate logs in the OpenTelemetry format directly!) and use the transform feature to map the `syslog` format into the OpenTelemetry format. @@ -178,7 +178,7 @@ method = "post" inputs = ["remap_syslog"] encoding.codec = "json" framing.method = "newline_delimited" -uri = "http://127.0.0.1:7280/api/v1/otel-logs-v0_6/ingest" +uri = "http://127.0.0.1:7280/api/v1/otel-logs-v0_7/ingest" ``` Download the above Vector config file. @@ -195,8 +195,8 @@ docker run -v $(pwd)/vector.toml:/etc/vector/vector.toml:ro -p 8383:8383 --net=h ## Search logs Quickwit is now ingesting logs coming from Vector and you can search them either with `curl` or by using the UI: -- `curl -XGET http://127.0.0.1:7280/api/v1/otel-logs-v0_6/search?query=severity_text:ERROR` -- Open your browser at `http://127.0.0.1:7280/ui/search?query=severity_text:ERROR&index_id=otel-logs-v0_6&max_hits=10` and play with it! +- `curl -XGET http://127.0.0.1:7280/api/v1/otel-logs-v0_7/search?query=severity_text:ERROR` +- Open your browser at `http://127.0.0.1:7280/ui/search?query=severity_text:ERROR&index_id=otel-logs-v0_7&max_hits=10` and play with it! ## Compute aggregation on severity_text @@ -227,7 +227,7 @@ Let's craft a nice aggregation query to count how many `INFO`, `DEBUG`, `WARN`, ``` ```bash -curl -XPOST -H "Content-Type: application/json" http://127.0.0.1:7280/api/v1/otel-logs-v0_6/search --data @aggregation-query.json +curl -XPOST -H "Content-Type: application/json" http://127.0.0.1:7280/api/v1/otel-logs-v0_7/search --data @aggregation-query.json ``` ## Going further diff --git a/quickwit/quickwit-opentelemetry/src/otlp/logs.rs b/quickwit/quickwit-opentelemetry/src/otlp/logs.rs index 38008b25f8..89d5a1ea40 100644 --- a/quickwit/quickwit-opentelemetry/src/otlp/logs.rs +++ b/quickwit/quickwit-opentelemetry/src/otlp/logs.rs @@ -44,7 +44,7 @@ use super::{ use crate::otlp::extract_attributes; use crate::otlp::metrics::OTLP_SERVICE_METRICS; -pub const OTEL_LOGS_INDEX_ID: &str = "otel-logs-v0_6"; +pub const OTEL_LOGS_INDEX_ID: &str = "otel-logs-v0_7"; const OTEL_LOGS_INDEX_CONFIG: &str = r#" version: 0.7 @@ -68,6 +68,7 @@ doc_mapping: - name: service_name type: text tokenizer: raw + fast: true - name: severity_text type: text tokenizer: raw diff --git a/quickwit/quickwit-opentelemetry/src/otlp/traces.rs b/quickwit/quickwit-opentelemetry/src/otlp/traces.rs index 4e9df00bf0..e6c0db0d0a 100644 --- a/quickwit/quickwit-opentelemetry/src/otlp/traces.rs +++ b/quickwit/quickwit-opentelemetry/src/otlp/traces.rs @@ -73,6 +73,7 @@ doc_mapping: - name: service_name type: text tokenizer: raw + fast: true - name: resource_attributes type: json tokenizer: raw diff --git a/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js b/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js index 5067b5583c..7fbaac4bdf 100644 --- a/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js +++ b/quickwit/quickwit-ui/cypress/e2e/homepage.spec.cy.js @@ -33,7 +33,7 @@ describe('Home navigation', () => { cy.get('span').should('contain.text', 'cluster_id'); }); it('Should display otel logs index page', () => { - cy.visit('http://127.0.0.1:7280/ui/indexes/otel-logs-v0_6'); + cy.visit('http://127.0.0.1:7280/ui/indexes/otel-logs-v0_7'); cy.get('a') .should('be.visible') .should('contain.text', 'Indexes')