102 lines
2.5 KiB
Plaintext
102 lines
2.5 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({
|
|
index: "my-index-000001",
|
|
refresh: "true",
|
|
operations: [
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-06-21T15:00:01-05:00",
|
|
message:
|
|
'211.11.9.0 - - [2020-06-21T15:00:01-05:00] "GET /english/index.html HTTP/1.0" 304 0',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-06-21T15:00:01-05:00",
|
|
message:
|
|
'211.11.9.0 - - [2020-06-21T15:00:01-05:00] "GET /english/index.html HTTP/1.0" 304 0',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:30:17-05:00",
|
|
message:
|
|
'40.135.0.0 - - [2020-04-30T14:30:17-05:00] "GET /images/hm_bg.jpg HTTP/1.0" 200 24736',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:30:53-05:00",
|
|
message:
|
|
'232.0.0.0 - - [2020-04-30T14:30:53-05:00] "GET /images/hm_bg.jpg HTTP/1.0" 200 24736',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:12-05:00",
|
|
message:
|
|
'26.1.0.0 - - [2020-04-30T14:31:12-05:00] "GET /images/hm_bg.jpg HTTP/1.0" 200 24736',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:19-05:00",
|
|
message:
|
|
'247.37.0.0 - - [2020-04-30T14:31:19-05:00] "GET /french/splash_inet.html HTTP/1.0" 200 3781',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:27-05:00",
|
|
message:
|
|
'252.0.0.0 - - [2020-04-30T14:31:27-05:00] "GET /images/hm_bg.jpg HTTP/1.0" 200 24736',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:29-05:00",
|
|
message:
|
|
'247.37.0.0 - - [2020-04-30T14:31:29-05:00] "GET /images/hm_brdl.gif HTTP/1.0" 304 0',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:29-05:00",
|
|
message:
|
|
'247.37.0.0 - - [2020-04-30T14:31:29-05:00] "GET /images/hm_arw.gif HTTP/1.0" 304 0',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:32-05:00",
|
|
message:
|
|
'247.37.0.0 - - [2020-04-30T14:31:32-05:00] "GET /images/nav_bg_top.gif HTTP/1.0" 200 929',
|
|
},
|
|
{
|
|
index: {},
|
|
},
|
|
{
|
|
"@timestamp": "2020-04-30T14:31:43-05:00",
|
|
message:
|
|
'247.37.0.0 - - [2020-04-30T14:31:43-05:00] "GET /french/images/nav_venue_off.gif HTTP/1.0" 304 0',
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|