title: Loading JSON data into Elasticsearch and Kibana using logstash configuration [ConfigurationError: translation missing]
body: <p>I am trying to import some JSON data into my Elasticsearch and Kibana cluster using logstash and its configuration. I am using a JSON file having three fields.</p>
  
  <pre><code>elasticsearch version used: 6.5.3
  logstash version used: 6.5.3
  </code></pre>
  
  <p>Logstash version used: 6.5.3</p>
  
  <p>Sample JSON file: test.json</p>
  
  <pre><code>{"name":"Jonathan","score":"9.9","address":"New Delhi"}
  {"name":"Sam","score":"8.9","address":"New York"}
  {"name":"Michelle","score":"9.0","address":"California"}
  </code></pre>
  
  <p>My configuration file: test.config</p>
  
  <pre><code>input{
   file{
          path =&gt; "/Users/amit/elasticsearch/data/test.json"
          codec =&gt; json
          sincedb_path =&gt; "/dev/null"
          start_position =&gt; "beginning"
   }
  }
  
  filter{
      json{
          source =&gt; "message"
      }
  
      mutate{
          convert =&gt; { 
              "name" =&gt; "text"
              "score" =&gt; "float"
              "address" =&gt; "text"
          }
      }
  }
  
  output{
      elasticsearch{
          hosts =&gt; "localhost:9200"
          index =&gt; "test"
      }
      stdout { codec =&gt; rubydebug }
  }
  </code></pre>
  
  <p>I am trying to import this data into elasticsearch using logstash using the following command:</p>
  
  <pre><code>bin/logstash -f ../../data/test.config 
  </code></pre>
  
  <p>But I get the following error message:</p>
  
  <blockquote>
    <p><strong>[2018-12-27T20:18:41,439][ERROR][logstash.pipeline]</strong> Error registering
    plugin {:pipeline_id=>"main",
    :plugin=>"#,
    @filter={\"name\"=>\"text\",
    \"score\"=>\"float\", \"address\"=>\"text\"},
    id=>\"4a292b8b637c63de89c36b730212b3c706307f5fd385080369ac0cbeac3c2d53\", enable_metric=>true, periodic_flush=>false>>", :error=>"translation
    missing: en.logstash.agent.configuration.invalid_plugin_register",
    :thread=>"#"}</p>
    
    <p><strong>[2018-12-27T20:18:41,452][ERROR][logstash.pipeline]</strong> Pipeline aborted
    due to error {:pipeline_id=>"main",
    :exception=>#,
    :backtrace=>["/Users/amit/elasticsearch/logstash/logstash-6.5.3/vendor/bundle/jruby/2.3.0/gems/logstash-filter-mutate-3.3.4/lib/logstash/filters/mutate.rb:219:in
    <code>block in register'", "org/jruby/RubyHash.java:1343:in</code>each'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/vendor/bundle/jruby/2.3.0/gems/logstash-filter-mutate-3.3.4/lib/logstash/filters/mutate.rb:217:in
    <code>register'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:242:in
    </code>register_plugin'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:253:in
    <code>block in register_plugins'", "org/jruby/RubyArray.java:1734:in
    </code>each'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:253:in
    <code>register_plugins'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:595:in
    </code>maybe_setup_out_plugins'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:263:in
    <code>start_workers'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:200:in
    </code>run'",
    "/Users/amit/elasticsearch/logstash/logstash-6.5.3/logstash-core/lib/logstash/pipeline.rb:160:in
    `block in start'"], :thread=>"#"}</p>
    
    <p><strong>[2018-12-27T20:18:41,474][ERROR][logstash.agent]</strong> Failed to execute
    action {:id=>:main,
    :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could
    not execute action: PipelineAction::Create, action_result:
    false", :backtrace=>nil}</p>
    
    <p><strong>[2018-12-27T20:18:41,705][INFO ][logstash.agent]</strong> Successfully started
    Logstash API endpoint {:port=>9600}</p>
  </blockquote>
  
  <p>Also, if I remove the mutate filter from the file test.config, it works fine. But, I want to change the type of <strong><em>score</em></strong> variable to float. Is there a problem in trying to mutate the fields during parsing or I am missing something else? Thanks :)</p>