Skip to content

Commit

Permalink
Add default search field for otel logs index. (quickwit-oss#3454)
Browse files Browse the repository at this point in the history
* Add default search field for otel logs index.

* Add observed timestamp values in traces/logs json examples.
  • Loading branch information
fmassot authored May 31, 2023
1 parent 5982b80 commit b3cef22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ curl -XPOST "http://localhost:4318/v1/traces" -H "Content-Type: application/json
"spans": [
{
"time_unix_nano": "1678974011000000000",
"observed_time_unix_nano": "1678974011000000000",
"start_time_unix_nano": "1678974011000000000",
"end_time_unix_nano": "1678974021000000000",
"trace_id": "3c191d03fa8be0653c191d03fa8be065",
Expand Down
1 change: 1 addition & 0 deletions docs/log-management/send-logs/using-otel-collector.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ curl -XPOST "http://localhost:4318/v1/logs" -H "Content-Type: application/json"
"log_records": [
{
"time_unix_nano": "1678974011000000000",
"observed_time_unix_nano": "1678974011000000000",
"name": "test",
"severity_text": "INFO"
}
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-opentelemetry/src/otlp/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ indexing_settings:
commit_timeout_secs: 5
search_settings:
default_search_fields: []
default_search_fields: [body.message]
"#;

pub type Base64 = String;
Expand Down

0 comments on commit b3cef22

Please sign in to comment.