# Date\_formatter plug-in issue

**URL:** <https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958>\
**Category:** Logstash\
**Created:** [July 20, 2018, 8:07pm UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958 "2018-07-20T20:07:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HRG](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HRG](https://discuss.elastic.co/u/HRG)\
**Post date:** [July 20, 2018, 8:07pm UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958/1 "2018-07-20T20:07:34Z")

</div>

Can you please help on what is missing. I have got date\_formatter.rb code and able to install the plug-in

./logstash-plugin install logstash-filter-date\_formatter  
Validating logstash-filter-date\_formatter  
Installing logstash-filter-date\_formatter  
Installation successful

when i run, logstash with the config, here is what i am getting. The samething worked if i install logstash manually. Getting below issue when installed logstash with puppet.

WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[WARN] 2018-07-20 16:05:44.655 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[INFO] 2018-07-20 16:05:45.493 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=\>"6.3.1"}  
[ERROR] 2018-07-20 16:05:54.274 [Converge PipelineAction::Create] registry - Tried to load a plugin's code, but failed. {:exception=\>#\<LoadError: no such file to load -- logstash/filters/date\_formatter\>, :path=\>"logstash/filters/date\_formatter", :type=\>"filter", :name=\>"date\_formatter"}  
**[ERROR] 2018-07-20 16:05:54.324 [Converge PipelineAction::Create] agent - Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::PluginLoadingError", :message=\>"Couldn't find any filter plugin named 'date\_formatter'. Are you sure this is correct? Trying to load the date\_formatter filter plugin resulted in this error: no such file to load -- logstash/filters/date\_formatter"**, :backtrace=\>["/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:210:in `lookup_pipeline_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/plugin.rb:140:in`lookup'", "/usr/share/logstash/logstash-core/lib/logstash/plugins/plugin\_factory.rb:89:in `plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:110:in`plugin'", "(eval):703:in `<eval>'", "org/jruby/RubyKernel.java:994:in`eval'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:82:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:167:in`initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline\_action/create.rb:40:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:305:in`block in converge\_state'"]}

The version is 6.3.1. Can you please help if i am doing something wrong.

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [July 20, 2018, 9:57pm UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958/2 "2018-07-20T21:57:17Z")

</div>

It looks like your puppet configuration is failing to install the plugin before starting Logstash. I'm not sure how else to be of help 😔

---

<div class="post-metadata">

**Author:** ![HRG](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HRG](https://discuss.elastic.co/u/HRG)\
**Post date:** [July 24, 2018, 6:12pm UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958/3 "2018-07-24T18:12:09Z")

</div>

Actually i am installaling date\_formatter manually after logstash is installed by puppet. I can even see date\_formatter in the logstash plug-ins list but not working.

Any thoughts on this please?

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [July 26, 2018, 6:03am UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958/4 "2018-07-26T06:03:54Z")

</div>

My best guess here without the output of your commands is that the plugin was installed as a different user than the user that is running Logstash, and that a permission issue is keeping Logstash from being able to read the plugin.

The plugin is installed in the `${LOGSTASH_HOME}/vendor` directory. Can you inspect permissions and ownership? What user is Logstash being run as under puppet? Does that user have permission to read and execute the files in the plugin's `lib` directory?

---

<div class="post-metadata">

**Author:** ![HRG](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HRG](https://discuss.elastic.co/u/HRG)\
**Post date:** [July 27, 2018, 5:45pm UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958/5 "2018-07-27T17:45:50Z")

</div>

Thank you. You are correct. Its a permission issue. Able to fix the issue.

Thank you very much.

---

<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:** [August 24, 2018, 5:46pm UTC](https://discuss.elastic.co/t/date-formatter-plug-in-issue/140958/6 "2018-08-24T17:46:00Z")

</div>

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