# Logstash: Could not locate field: logstash.host.name

**URL:** <https://discuss.elastic.co/t/logstash-could-not-locate-field-logstash-host-name/365884>\
**Category:** Elastic Agent\
**Tags:** integrations\
**Created:** [September 2, 2024, 6:46am UTC](https://discuss.elastic.co/t/logstash-could-not-locate-field-logstash-host-name/365884 "2024-09-02T06:46:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaustub\_Gupta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaustub_gupta/32/131437_2.png) [@Kaustub\_Gupta](https://discuss.elastic.co/u/Kaustub_Gupta)\
**Post date:** [September 2, 2024, 6:46am UTC](https://discuss.elastic.co/t/logstash-could-not-locate-field-logstash-host-name/365884/1 "2024-09-02T06:46:57Z")

</div>

I installed elastic-agent as a service to monitor my server, I then enrolled it with agent policy with various integration, my aim is to use the logstash integration to monitor the logs, in my system logstash is running as a container. But while adding up the logstash integration and then trying to visualize it through dashboard I'm getting this error "Could not locate field: logstash.host.name"

---

<div class="post-metadata">

**Author:** ![neoaddix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neoaddix/32/118260_2.png) [@neoaddix](https://discuss.elastic.co/u/neoaddix)\
**Post date:** [September 23, 2024, 5:11pm UTC](https://discuss.elastic.co/t/logstash-could-not-locate-field-logstash-host-name/365884/2 "2024-09-23T17:11:30Z")

</div>

@Kaustub_Gupta - I have a similar issue: used the logstash integration, setup the agent, installed the agent on the logstash server, it seems all metrics and logs are coming in but all the standard dashboards in Kibana do not work and give all kinds of errors like field not found: `logstash.host_name` and other fields. Also Logstash does not appear in the Stack Monitoring.

I was still not able to find a solution for it. did you get any further?

---

<div class="post-metadata">

**Author:** ![chouben](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chouben](https://discuss.elastic.co/u/chouben)\
**Post date:** [October 29, 2024, 12:03pm UTC](https://discuss.elastic.co/t/logstash-could-not-locate-field-logstash-host-name/365884/3 "2024-10-29T12:03:16Z")

</div>

Hi

I was having a similar issue and found this link:

> **[Logstash | Documentation](https://www.elastic.co/docs/current/integrations/logstash#metrics-technical-preview)**
>
> Collect logs and metrics from Logstash with Elastic Agent.

Most important:

> Existing implementations wishing to continue using the Stack Monitoring UI should uncheck the technical preview option, and continue to use `Metrics (Stack Monitoring)` . Those users who wish to use the technical preview should uncheck `Metrics (Stack Monitoring)` and check `Metrics (Technical Preview)`

So I'm currently reverting back to the Stack Monitoring UI, which is showing my data.

If you want to use the dashboards, it seems you need to enable the `Technical Preview` in the Policy:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/956d28fab60edb90631c50c86e32f4d9b03c0379.png)

Best regards  
Christof
