Simulate a pipeline

    copy

    Simulate the last ingest pipeline created.

    1. POST _ingest/pipeline/_simulate

    All URL parameters are optional.

    The docs field can include the following subfields:

    1. {
    2. "docs" : [
    3. {
    4. "doc" : {
    5. "_index" : "index",
    6. "_id" : "id",
    7. "_source" : {
    8. "location" : "new-new",
    9. "field2" : "_value"
    10. },
    11. "_ingest" : {
    12. "timestamp" : "2022-02-07T18:47:57.479230835Z"
    13. }
    14. }
    15. },
    16. {
    17. "doc" : {
    18. "_id" : "id",
    19. "location" : "new-new",
    20. "field2" : "_value"
    21. },
    22. "_ingest" : {
    23. "timestamp" : "2022-02-07T18:47:57.47933496Z"
    24. }
    25. }
    26. }
    27. ]
    28. }

    With the verbose parameter set to true, the response shows how each processor transforms the specified document.

    1. {
    2. "docs" : [
    3. {
    4. "processor_results" : [
    5. {
    6. "processor_type" : "set",
    7. "status" : "success",
    8. "doc" : {
    9. "_index" : "index",
    10. "_id" : "id",
    11. "_source" : {
    12. "field-name" : "value",
    13. "location" : "document-name"
    14. },
    15. "_ingest" : {
    16. "timestamp" : "2022-02-03T21:45:09.414049004Z"
    17. }
    18. }
    19. }
    20. ]
    21. },
    22. {
    23. "processor_results" : [
    24. {
    25. "processor_type" : "set",
    26. "status" : "success",
    27. "doc" : {
    28. "_index" : "index",
    29. "_id" : "id",
    30. "_source" : {
    31. "field-name" : "value",
    32. "location" : "document-name"
    33. },
    34. "_ingest" : {
    35. "pipeline" : "35678",
    36. "timestamp" : "2022-02-03T21:45:09.414093212Z"
    37. }
    38. }
    39. }
    40. ]
    41. }
    42. ]