# Querying hosts from a file

**URL:** <https://discuss.elastic.co/t/querying-hosts-from-a-file/233062>\
**Category:** Logstash\
**Created:** [May 18, 2020, 8:23am UTC](https://discuss.elastic.co/t/querying-hosts-from-a-file/233062 "2020-05-18T08:23:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claireshan](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@Claireshan](https://discuss.elastic.co/u/Claireshan)\
**Post date:** [May 18, 2020, 8:23am UTC](https://discuss.elastic.co/t/querying-hosts-from-a-file/233062/1 "2020-05-18T08:23:27Z")

</div>

Hello am getting laser from devices using snmp and so far with one device am getting the data very well. I have many hosts and their ips are in a file, how can i query through the file pick ip by ip and for each ip i pick it becomes the host, i use it to get the laser values and go onto the next one.

---

<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:** [May 18, 2020, 8:26am UTC](https://discuss.elastic.co/t/querying-hosts-from-a-file/233062/2 "2020-05-18T08:26:31Z")

</div>

It's not clear what you mean by laser, but take a look at [https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html). I think that is what you are after.

---

<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 15, 2020, 8:27am UTC](https://discuss.elastic.co/t/querying-hosts-from-a-file/233062/3 "2020-06-15T08:27:07Z")

</div>

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