# Metricbeat unable to start

**URL:** https://discuss.elastic.co/t/metricbeat-unable-to-start/295399
**Category:** Beats
**Tags:** beats-module, metricbeat
**Created:** [January 25, 2022, 9:03pm UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399 "2022-01-25T21:03:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mmmguy](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mmmguy](https://discuss.elastic.co/u/mmmguy)
#### Post date: [January 25, 2022, 9:03pm UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399/1 "2022-01-25T21:03:52Z")

</div>

Anyone ever have issues getting the metricbeat service to start on a 2012 R2 server where the filebeat log says Exiting: can not convert 'object' into 'string' accessing '0.hosts.0' (source:'C:\ProgramData\Elastic\Beats\metricbeat\modules.d\auto-auth.yml')

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [January 27, 2022, 11:30am UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399/2 "2022-01-27T11:30:32Z")

</div>

Hi,

would you mind sharing this file (`auto-auth.yml`)? Have you modified it?

---

<div class="post-metadata">

### Author: ![VamPikmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vampikmin/32/22367_2.png) [@VamPikmin](https://discuss.elastic.co/u/VamPikmin)
#### Post date: [January 27, 2022, 11:42am UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399/3 "2022-01-27T11:42:29Z")

</div>

I know this is Windows, but can you try forward slashes instead?

`C:/ProgramData/…`

---

<div class="post-metadata">

### Author: ![mmmguy](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mmmguy](https://discuss.elastic.co/u/mmmguy)
#### Post date: [January 27, 2022, 3:14pm UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399/4 "2022-01-27T15:14:12Z")

</div>

It has been customized. It happens on any of the module.d files in there. I can disable the first one and it will fail at the next one in line.

Here is the contents of the auto-actions.yml file it fails on first.

```auto
# Module: sql
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.8/metricbeat-module-sql.html
# PS

- module: sql
  metricsets:
    - query
  period: 1m
  hosts: ["Removed Specific Information"]

  driver: "mysql"
  sql_query: 'Query Removed'
  sql_response_format: table

```

* * *

One thing I noticed with this one machine facing the issue, when opening this file in Notepad there is no format to the file, even with Word Wrap on. If I open this file on my personal machine I see the formatting correctly.

I can take the file from this non-working machine and put it in a different machine and it works fine. Take a working machine's file and put it in the non-working machine and it fails to start the service. I have also attempted to uninstall/reinstall the Metricbeat agent.

---

<div class="post-metadata">

### Author: ![mmmguy](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@mmmguy](https://discuss.elastic.co/u/mmmguy)
#### Post date: [February 10, 2022, 3:57pm UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399/5 "2022-02-10T15:57:30Z")

</div>

If it helps, here is the log file.

2022-01-05T10:39:49.903-0600 INFO instance/beat.go:647 Home path: [C:\Program Files\Elastic\Beats\7.8.0\metricbeat] Config path: [C:\ProgramData\Elastic\Beats\metricbeat] Data path: [C:\ProgramData\Elastic\Beats\metricbeat\data] Logs path: [C:\ProgramData\Elastic\Beats\metricbeat\logs]  
2022-01-05T10:39:49.905-0600 INFO instance/beat.go:655 Beat ID: REMOVED INFORMATION  
2022-01-05T10:39:49.912-0600 INFO [beat] instance/beat.go:983 Beat info {"system\_info": {"beat": {"path": {"config": "C:\ProgramData\Elastic\Beats\metricbeat", "data": "C:\ProgramData\Elastic\Beats\metricbeat\data", "home": "C:\Program Files\Elastic\Beats\7.8.0\metricbeat", "logs": "C:\ProgramData\Elastic\Beats\metricbeat\logs"}, "type": "metricbeat", "uuid": "REMOVED INFORMATION"}}}  
2022-01-05T10:39:49.912-0600 INFO [beat] instance/beat.go:992 Build info {"system\_info": {"build": {"commit": "f79387d32717d79f689d94fda1ec80b2cf285d30", "libbeat": "7.8.0", "time": "2020-06-14T18:20:02.000Z", "version": "7.8.0"}}}  
2022-01-05T10:39:49.912-0600 INFO [beat] instance/beat.go:995 Go runtime info {"system\_info": {"go": {"os":"windows","arch":"amd64","max\_procs":6,"version":"go1.13.10"}}}  
2022-01-05T10:39:49.916-0600 INFO [beat] instance/beat.go:999 Host info {"system\_info": {"host": {"architecture":"x86\_64","boot\_time":"2022-01-04T04:01:51.25-06:00","name":"REMOVED INFORMATION","ip":["REMOVED INFORMATION"],"kernel\_version":"6.3.9600.20201 (winblue\_ltsb\_escrow.211115-1606)","mac":["REMOVED INFORMATION"],"os":{"family":"windows","platform":"windows","name":"Windows Server 2012 R2 Datacenter","version":"6.3","major":3,"minor":0,"patch":0,"build":"9600.20207"},"timezone":"CST","timezone\_offset\_sec":-21600,"id":"REMOVED INFORMATION"}}}  
2022-01-05T10:39:49.916-0600 INFO [beat] instance/beat.go:1028 Process info {"system\_info": {"process": {"cwd": "C:\Windows\system32", "exe": "C:\Program Files\Elastic\Beats\7.8.0\metricbeat\metricbeat.exe", "name": "metricbeat.exe", "pid": 7612, "ppid": 580, "start\_time": "2022-01-05T10:39:48.964-0600"}}}  
2022-01-05T10:39:49.916-0600 INFO instance/beat.go:310 Setup Beat: metricbeat; Version: 7.8.0  
2022-01-05T10:39:49.916-0600 INFO [index-management] idxmgmt/std.go:183 Set output.Elasticsearch.index to 'metricbeat-7.8.0' as ILM is enabled.  
2022-01-05T10:39:49.917-0600 INFO eslegclient/connection.go:97 Elasticsearch url: [https://REMOVEDINFORMATION:443/elastic](https://REMOVEDINFORMATION:443/elastic)  
2022-01-05T10:39:49.917-0600 INFO [publisher] pipeline/module.go:113 Beat name: REMOVED\_INFORMATION  
2022-01-05T10:39:49.936-0600 INFO instance/beat.go:463 metricbeat start running.  
2022-01-05T10:39:49.936-0600 INFO [monitoring] log/log.go:118 Starting metrics logging every 30s  
2022-01-05T10:39:49.940-0600 INFO [monitoring] log/log.go:153 Total non-zero metrics {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":93,"time":{"ms":93}},"total":{"ticks":171,"time":{"ms":171},"value":171},"user":{"ticks":78,"time":{"ms":78}}},"handles":{"open":206},"info":{"ephemeral\_id":"69e5e431-bd96-4cc8-a52b-1c534ba1b5d4","uptime":{"ms":920}},"memstats":{"gc\_next":14067296,"memory\_alloc":11761304,"memory\_total":24586456,"rss":45686784},"runtime":{"goroutines":41}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"Elasticsearch"},"pipeline":{"clients":0,"events":{"active":0}}},"system":{"cpu":{"cores":6}}}}}  
2022-01-05T10:39:49.940-0600 INFO [monitoring] log/log.go:154 Uptime: 920.9846ms  
2022-01-05T10:39:49.940-0600 INFO [monitoring] log/log.go:131 Stopping metrics logging.  
2022-01-05T10:39:49.940-0600 INFO instance/beat.go:469 metricbeat stopped.  
2022-01-05T10:39:49.942-0600 ERROR instance/beat.go:958 Exiting: can not convert 'object' into 'string' accessing '0.hosts.0' (source:'C:\ProgramData\Elastic\Beats\metricbeat\modules.d\auto-auth.yml')

---

<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: [March 10, 2022, 5:58pm UTC](https://discuss.elastic.co/t/metricbeat-unable-to-start/295399/6 "2022-03-10T17:58:10Z")

</div>

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