// 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.ml.putDataFrameAnalytics({
  id: "loganalytics",
  description: "Outlier detection on log data",
  source: {
    index: "logdata",
  },
  dest: {
    index: "logdata_out",
  },
  analysis: {
    outlier_detection: {
      compute_feature_influence: true,
      outlier_fraction: 0.05,
      standardization_enabled: true,
    },
  },
});
console.log(response);
----
