# Update document giving status 404

**URL:** <https://discuss.elastic.co/t/update-document-giving-status-404/129818>\
**Category:** Elasticsearch\
**Created:** [April 27, 2018, 11:41am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818 "2018-04-27T11:41:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saramali](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@saramali](https://discuss.elastic.co/u/saramali)\
**Post date:** [April 27, 2018, 11:41am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/1 "2018-04-27T11:41:14Z")

</div>

I just updated to 6.1.4.  
My logstash script is working fine but in the elasticsearch window it is giving me the following

"dex=\>"khoji-logs-2018-04-27", :\_type=\>"doc", :\_routing=\>nil, :\_retry\_on\_conflict=\>1}, #LogStash::Event:0x40bd3e8], :response=\>{"update"=\>{"\_index"=\>"khoji-logs-2018-04-27", "\_type"=\>"doc", "\_id"=\>"retailErrlog.out-2018-02-01 04:30:42,245-1051-010", "status"=\>404, "error"=\>{"type"=\>"document\_missing\_exception", "reason"=\>"[doc][retailErrlog.out-2018-02-01 04:30:42,245-1051-010]: document missing", "index\_uuid"=\>"NdrjPeYETKqfVmc\_HQN4yA", "shard"=\>"4", "index"=\>"khoji-logs-2018-04-27"}}}}"

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d626e87ee84f56306118d54ecb364312f00cdc1e.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2018, 11:42am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/2 "2018-04-27T11:42:44Z")

</div>

Looks like the document doesn't exist then. Try an upsert?

---

<div class="post-metadata">

**Author:** ![saramali](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@saramali](https://discuss.elastic.co/u/saramali)\
**Post date:** [April 27, 2018, 11:44am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/3 "2018-04-27T11:44:08Z")

</div>

@warkolm was working fine on 5.5.2.  
I searched a few forums and found that it might be related to type. As per the type is removed in 6.x  
How can I fix this issue?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2018, 11:44am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/4 "2018-04-27T11:44:48Z")

</div>

Can you show your Logstash pipeline config?

---

<div class="post-metadata">

**Author:** ![saramali](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@saramali](https://discuss.elastic.co/u/saramali)\
**Post date:** [April 27, 2018, 11:47am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/5 "2018-04-27T11:47:20Z")

</div>

@warkolm are you talking about the pipelines.yml file?  
everything is commented in that file.

---

<div class="post-metadata">

**Author:** ![saramali](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@saramali](https://discuss.elastic.co/u/saramali)\
**Post date:** [April 27, 2018, 11:55am UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/6 "2018-04-27T11:55:17Z")

</div>

# List of pipelines to be loaded by Logstash

# 

# This document must be a list of dictionaries/hashes, where the keys/values are pipeline settings.

# Default values for ommitted settings are read from the `logstash.yml` file.

# When declaring multiple pipelines, each MUST have its own `pipeline.id`.

# 

# Example of two pipelines:

# 

# - pipeline.id: test

# pipeline.workers: 1

# pipeline.batch.size: 1

# config.string: "input { generator {} } filter { sleep { time =\> 1 } } output { stdout { codec =\> dots } }"

# - pipeline.id: another\_test

# queue.type: persisted

# path.config: "/tmp/logstash/\*.config"

# 

# Available options:

# 

# # name of the pipeline

# pipeline.id: mylogs

# 

# # The configuration string to be used by this pipeline

# config.string: "input { generator {} } filter { sleep { time =\> 1 } } output { stdout { codec =\> dots } }"

# 

# # The path from where to read the configuration text

# path.config: "/etc/conf.d/logstash/myconfig.cfg"

# 

# # How many worker threads execute the Filters+Outputs stage of the pipeline

# pipeline.workers: 1 (actually defaults to number of CPUs)

# 

# # How many events to retrieve from inputs before sending to filters+workers

# pipeline.batch.size: 125

# 

# # How long to wait before dispatching an undersized batch to filters+workers

# pipeline.batch.delay: 5

# 

# # How many workers should be used per output plugin instance

# pipeline.output.workers: 1

# 

# # Internal queuing model, "memory" for legacy in-memory based queuing and

# # "persisted" for disk-based acked queueing. Defaults is memory

# queue.type: memory

# 

# # If using queue.type: persisted, the page data files size. The queue data consists of

# # append-only data files separated into pages. Default is 250mb

# queue.page\_capacity: 250mb

# 

# # If using queue.type: persisted, the maximum number of unread events in the queue.

# # Default is 0 (unlimited)

# queue.max\_events: 0

# 

# # If using queue.type: persisted, the total capacity of the queue in number of bytes.

# # Default is 1024mb or 1gb

# queue.max\_bytes: 1024mb

# 

# # If using queue.type: persisted, the maximum number of acked events before forcing a checkpoint

# # Default is 1024, 0 for unlimited

# queue.checkpoint.acks: 1024

# 

# # If using queue.type: persisted, the maximum number of written events before forcing a checkpoint

# # Default is 1024, 0 for unlimited

# queue.checkpoint.writes: 1024

# 

# # If using queue.type: persisted, the interval in milliseconds when a checkpoint is forced on the head page

# # Default is 1000, 0 for no periodic checkpoint.

# queue.checkpoint.interval: 1000

# 

# # Enable Dead Letter Queueing for this pipeline.

# dead\_letter\_queue.enable: false

# 

# If using dead\_letter\_queue.enable: true, the maximum size of dead letter queue for this pipeline. Entries

# will be dropped if they would increase the size of the dead letter queue beyond this setting.

# Default is 1024mb

# dead\_letter\_queue.max\_bytes: 1024mb

# 

# If using dead\_letter\_queue.enable: true, the directory path where the data files will be stored.

# Default is path.data/dead\_letter\_queue

# 

# path.dead\_letter\_queue:

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2018, 2:34pm UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/7 "2018-04-27T14:34:52Z")

</div>

I mean the actual config that contains the input, filter and output.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 25, 2018, 2:35pm UTC](https://discuss.elastic.co/t/update-document-giving-status-404/129818/8 "2018-05-25T14:35:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
