# Elastic config file revert to default

**URL:** <https://discuss.elastic.co/t/elastic-config-file-revert-to-default/295955>\
**Category:** Elasticsearch\
**Created:** [February 1, 2022, 3:23pm UTC](https://discuss.elastic.co/t/elastic-config-file-revert-to-default/295955 "2022-02-01T15:23:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gamliel\_Alon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gamliel_alon/32/99006_2.png) [@Gamliel\_Alon](https://discuss.elastic.co/u/Gamliel_Alon)\
**Post date:** [February 1, 2022, 3:23pm UTC](https://discuss.elastic.co/t/elastic-config-file-revert-to-default/295955/1 "2022-02-01T15:23:23Z")

</div>

Hi  
after installing security patches on ubuntu 18.04 the yml config file was revert to default like all was commented again  
on the logs I see this see this:  
Setting up linux-cloud-tools-common (4.15.0-166.174) ...  
Setting up linux-azure-5.4-cloud-tools-5.4.0-1067 (5.4.0-1067.70~18.04.1) ...  
Setting up linux-cloud-tools-5.4.0-1067-azure (5.4.0-1067.70~18.04.1) ...  
Setting up Elasticsearch (7.16.3) ...

Configuration file '/etc/Elasticsearch/Elasticsearch.yml'  
==\> Modified (by you or by a script) since installation.  
==\> Package distributor has shipped an updated version.  
What would you like to do about it ? Your options are:  
Y or I : install the package maintainer's version  
N or O : keep your currently-installed version  
D : show the differences between the versions  
Z : start a shell to examine the situation  
The default action is to keep your current version.  
\*\*\* Elasticsearch.yml (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package Elasticsearch (--configure):  
end of file on stdin at conffile prompt  
Setting up linux-cloud-tools-azure (5.4.0.1067.46) ...

I noticed also bellow

Found initrd image: /boot/initrd.img-5.4.0-1055-azure  
done  
Errors were encountered while processing:  
Elasticsearch  
E: Sub-process /usr/bin/dpkg returned an error code (1)

---

<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:** [March 1, 2022, 3:23pm UTC](https://discuss.elastic.co/t/elastic-config-file-revert-to-default/295955/2 "2022-03-01T15:23:49Z")

</div>

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