# Beginner question: Verifying that a file has successfully been entered in ES

**URL:** <https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151>\
**Category:** Logstash\
**Created:** [August 10, 2015, 7:49pm UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151 "2015-08-10T19:49:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [August 10, 2015, 7:49pm UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/1 "2015-08-10T19:49:41Z")

</div>

Greetings Logstash Community,

I am very new to the Logstash/ElasticSearch application and I have a very basic question:

I have the following configuration file where my goal is to take a log file and insert it in ElasticSearch (for now, without indexing any data).

input {  
file }  
path =\> "C:\Users\Admin\Desktop\Logs\_elasticsearch\logfile.txt"  
type =\> "GVP"  
}  
}

#filter {

# grok {

# 

# }

#}

output {  
elasticsearch {  
host =\> localhost  
}  
stdout {codec =\> rubydebug}  
}

After I load the configuration file using the /bin/logstash -f logstash.conf command, how can I validate that the file has successsfully been entered in ElasticSearch?

Thanks for the explanation,

Regards,

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 10, 2015, 8:21pm UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/2 "2015-08-10T20:21:11Z")

</div>

If you intend to use Kibana later on (probably) you might as well install and configure it now and use it for verification. Otherwise [Elasticsearch's search API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html) is easy to use. You might also find the [cat count API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html) useful if you want to check how many documents are indexed and make sure that show correlate to the number of lines in the file.

---

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [August 11, 2015, 6:31pm UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/3 "2015-08-11T18:31:52Z")

</div>

Thanks for your reply Magnus.

I ran the command [http://localhost:9200/\_search/search\_type=count](http://localhost:9200/_search/search_type=count). However, I conclude that only the individual entries were entered in ES, and not the log file that I tried to enter while running the conf file. Any feedback?

The info I have in the conf file:

input {  
file {  
path =\> "C:\Users\Admin\Desktop\Logs\_elasticsearch\logfile.txt"  
type =\> "GVP"  
}  
}

output {  
elasticsearch {  
host =\> localhost  
}  
stdout {codec =\> rubydebug}  
}

I appreciate your assistance.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 11, 2015, 7:52pm UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/4 "2015-08-11T19:52:25Z")

</div>

"Individual entries"? I don't understand.

One thing to keep in mind is that all outputs emit messages in lockstep, so if the stdout output is writing data to stdout then that means that the elasticsearch output is also successfully sending data. (well, okay, I think at least with Logstash \<1.5 ES could actually reject messages without Logstash taking much notice).

---

<div class="post-metadata">

**Author:** ![Didier](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@Didier](https://discuss.elastic.co/u/Didier)\
**Post date:** [August 11, 2015, 8:21pm UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/5 "2015-08-11T20:21:09Z")

</div>

When I refer to individual entries, I mean entering data in ES using the PUT command. However, I am not able to input complete log files within ES.

I do get the following error whenever I start LS on windows 7 64 bit: "IO/console not supported; tty will not be manipulated". This error happens both when I don't define a Config file and when I specify a Config file. Could this be related?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 12, 2015, 5:37am UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/6 "2015-08-12T05:37:41Z")

</div>

> When I refer to individual entries, I mean entering data in ES using the PUT command. However, I am not able to input complete log files within ES.

Okay. Turning up Logstash's logging with `--verbose` or even `--debug` will provide clues. Again, if it has problems posting to ES it _will_ tell you in the log.

> I do get the following error whenever I start LS on windows 7 64 bit: "IO/console not supported; tty will not be manipulated". This error happens both when I don't define a Config file and when I specify a Config file. Could this be related?

Unrelated, ignore. See [Warning when running any shell commands · Issue #3087 · elastic/logstash · GitHub](https://github.com/elastic/logstash/issues/3087).

---

<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:** [July 6, 2017, 5:32am UTC](https://discuss.elastic.co/t/beginner-question-verifying-that-a-file-has-successfully-been-entered-in-es/27151/7 "2017-07-06T05:32:12Z")

</div>


