Files
elasticsearch-js/docs/doc_examples/b62eaa20c4e0e48134a6d1d1b3c30b26.asciidoc
2025-03-07 15:18:44 -06:00

217 lines
4.9 KiB
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.bulk({
refresh: "true",
operations: [
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-monitoring]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-ent-search]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-expression]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-eql]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:43,291][INFO ][o.e.e.NodeEnvironment ] [laptop] heap size [16gb], compressed ordinary object pointers [true]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:46,098][INFO ][o.e.x.s.Security ] [laptop] Security is enabled",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:47,227][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] Profiling is enabled",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:47,259][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] profiling index templates will not be installed or reinstalled",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:47,755][INFO ][o.e.i.r.RecoverySettings ] [laptop] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:47,787][INFO ][o.e.d.DiscoveryModule ] [laptop] using discovery type [multi-node] and seed hosts providers [settings]",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:49,188][INFO ][o.e.n.Node ] [laptop] initialized",
},
{
index: {
_index: "test-logs",
},
},
{
message:
"[2024-03-05T10:52:49,199][INFO ][o.e.n.Node ] [laptop] starting ...",
},
],
});
console.log(response);
const response1 = await client.textStructure.findFieldStructure({
index: "test-logs",
field: "message",
});
console.log(response1);
----