// 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.index({
  index: "my-index-000001",
  document: {
    "@timestamp": "2019-05-18T15:57:27.541Z",
    ip: "225.44.217.191",
    extension: "jpg",
    response: "200",
    geo: {
      coordinates: {
        lat: 38.53146222,
        lon: -121.7864906,
      },
    },
    url: "https://media-for-the-masses.theacademyofperformingartsandscience.org/uploads/charles-fullerton.jpg",
  },
});
console.log(response);

const response1 = await client.index({
  index: "my-index-000002",
  document: {
    "@timestamp": "2019-05-20T03:44:20.844Z",
    ip: "198.247.165.49",
    extension: "php",
    response: "200",
    geo: {
      coordinates: {
        lat: 37.13189556,
        lon: -76.4929875,
      },
    },
    memory: 241720,
    url: "https://theacademyofperformingartsandscience.org/people/type:astronauts/name:laurel-b-clark/profile",
  },
});
console.log(response1);
----
