# Using logstash for HTML file?

**URL:** <https://discuss.elastic.co/t/using-logstash-for-html-file/101906>\
**Category:** Logstash\
**Created:** [September 26, 2017, 9:15pm UTC](https://discuss.elastic.co/t/using-logstash-for-html-file/101906 "2017-09-26T21:15:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magdieldominguez](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@magdieldominguez](https://discuss.elastic.co/u/magdieldominguez)\
**Post date:** [September 26, 2017, 9:15pm UTC](https://discuss.elastic.co/t/using-logstash-for-html-file/101906/1 "2017-09-26T21:15:05Z")

</div>

Hi im very new to the ELK stack. Ive managed to get kibana, elasticsearch, logstash, and filebeat running together just from the elasticsearch tutorials. There is an html page that I downloaded which contains log data that I need to analyze. I was wondering if I could use logstash to pass the contents of that html file on to elasticsearch? If so how would I configure the config file? Everything is running on my machine. An example of what is in the html file is:

\<_td valign="top" align="left"\>  
\<font color="#6E6E6E" size="2"\>2017.09.26&nbsp;\</font\>  
\<font color="#2E2E2E" size="2"\>  
\<b\>05:34:04\</b\>  
\<_/font\>  
\</td\*\>

What I would need is the 2 date formats up there. I just dont know how to make the config file. For example would I do something like this?  
input {  
file {  
type =\> "html"  
path =\> "\<C:\Users\Me\Desktop\Pros92617.html"  
start\_position =\> "beginning"  
}  
}

Thank you very much! and thank you for this community

---

<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:** [October 24, 2017, 9:15pm UTC](https://discuss.elastic.co/t/using-logstash-for-html-file/101906/2 "2017-10-24T21:15:05Z")

</div>

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