# How to collect logs from web browser?

**URL:** <https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585>\
**Category:** Beats\
**Created:** [June 1, 2016, 3:39pm UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585 "2016-06-01T15:39:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarhanu](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kumarhanu](https://discuss.elastic.co/u/kumarhanu)\
**Post date:** [June 1, 2016, 3:39pm UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/1 "2016-06-01T15:39:04Z")

</div>

Is there any beats or any agent to collect logs generated by web application from web browser and feed into elastic search?

Appreciate any help in this regard.

---

<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:** [June 1, 2016, 5:18pm UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/2 "2016-06-01T17:18:44Z")

</div>

You mean the client-side JavaScript would somehow post log events?

---

<div class="post-metadata">

**Author:** ![kumarhanu](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kumarhanu](https://discuss.elastic.co/u/kumarhanu)\
**Post date:** [June 2, 2016, 4:00am UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/3 "2016-06-02T04:00:18Z")

</div>

Yes Magnus. The logs generated by javascript of a web application.

---

<div class="post-metadata">

**Author:** ![Jaren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaren/32/9986_2.png) [@Jaren](https://discuss.elastic.co/u/Jaren)\
**Post date:** [June 2, 2016, 4:45am UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/4 "2016-06-02T04:45:58Z")

</div>

Are you writing those current logs to a file? If so, what stopping you from point filebeat at them? I am most likely missing something here ...

---

<div class="post-metadata">

**Author:** ![kumarhanu](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kumarhanu](https://discuss.elastic.co/u/kumarhanu)\
**Post date:** [June 2, 2016, 5:45am UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/5 "2016-06-02T05:45:33Z")

</div>

First point, currently the logs are written on console. Is it possible to ship them?  
Second point, do you mean to logs to a file that is remote server not in client machine where browser is running.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [June 6, 2016, 10:03am UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/6 "2016-06-06T10:03:29Z")

</div>

Logs are written to the browser console? Somehow you need to push the logs to the server who is going to store/push the logs.

---

<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:** [June 22, 2016, 3:39pm UTC](https://discuss.elastic.co/t/how-to-collect-logs-from-web-browser/51585/7 "2016-06-22T15:39:15Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
