# Need a help to import log.conf (with x-pack installed)

**URL:** <https://discuss.elastic.co/t/need-a-help-to-import-log-conf-with-x-pack-installed/96212>\
**Category:** Elasticsearch\
**Created:** [August 8, 2017, 7:46am UTC](https://discuss.elastic.co/t/need-a-help-to-import-log-conf-with-x-pack-installed/96212 "2017-08-08T07:46:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![echai0](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@echai0](https://discuss.elastic.co/u/echai0)\
**Post date:** [August 8, 2017, 7:46am UTC](https://discuss.elastic.co/t/need-a-help-to-import-log-conf-with-x-pack-installed/96212/1 "2017-08-08T07:46:29Z")

</div>

Hi,  
I am newbie on elasticsearch.  
I tried to import my "logstash\_general.conf" to elasticsearch.  
However, It didn't work.  
when I entered following command,

```
/usr/share/logstash/bin/logstash -f /home/cylee/logstash_general.conf --path.settings=/etc/logstash

```

The response from the terminal is like this

```
 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties

```

I imported log.conf successfully whichi is provided by elasticsearch, so I think either .csv or .conf would be a cause.

This is log file for logstsash.

```
[2017-08-08T16:27:11,988][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://elastic:xxxxxx@localhost:9200/]}}
[2017-08-08T16:27:11,993][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://elastic:xxxxxx@localhost:9200/, :path=>"/"}
[2017-08-08T16:27:12,127][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>#<Java::JavaNet::URI:0x7f1af198>}
[2017-08-08T16:27:12,128][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2017-08-08T16:27:12,172][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"template"=>"logstash-*", "version"=>50001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"_all"=>{"enabled"=>true, "norms"=>false}, "dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date", "include_in_all"=>false}, "@version"=>{"type"=>"keyword", "include_in_all"=>false}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2017-08-08T16:27:12,179][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>[#<Java::JavaNet::URI:0x16313c2>]}
[2017-08-08T16:27:12,185][INFO][logstash.pipeline] Starting pipeline {"id"=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>1000}
[2017-08-08T16:27:12,332][INFO][logstash.pipeline] Pipeline main started
[2017-08-08T16:27:12,374][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}

```

This is my "logstash\_general.conf" file & "PRSA\_data\_2010.1.1-2014.12.31.csv "

 ![31](https://us1.discourse-cdn.com/elastic/original/3X/5/1/51bc5472cc5fb2110772904f4d05c76320fae388.png)

 ![prsa data](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dcb8136a03c46dfb716ca4d53083149b9e3c9f37.png)

ps) I try to import prsa~.csv to use machine learning but I have no idea how to make timestamp.  
It will be really great if you consider about timestamp. 🙂

Have a nice day!

---

<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:** [August 8, 2017, 7:49am UTC](https://discuss.elastic.co/t/need-a-help-to-import-log-conf-with-x-pack-installed/96212/2 "2017-08-08T07:49:30Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them 🙂

That output just means Logstash has started and is waiting for input.

---

<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:** [September 5, 2017, 7:49am UTC](https://discuss.elastic.co/t/need-a-help-to-import-log-conf-with-x-pack-installed/96212/3 "2017-09-05T07:49:46Z")

</div>

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