# Please help with creating new index for Filebeat

**URL:** <https://discuss.elastic.co/t/please-help-with-creating-new-index-for-filebeat/208561>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 19, 2019, 6:32pm UTC](https://discuss.elastic.co/t/please-help-with-creating-new-index-for-filebeat/208561 "2019-11-19T18:32:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RayKishev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raykishev/32/54175_2.png) [@RayKishev](https://discuss.elastic.co/u/RayKishev)\
**Post date:** [November 19, 2019, 6:32pm UTC](https://discuss.elastic.co/t/please-help-with-creating-new-index-for-filebeat/208561/1 "2019-11-19T18:32:03Z")

</div>

Hello @Elastic Team,

I'm trying to capture Cpu temp logs using Filebeat. Im running a script which captures CPU temp and stores logs in log file, then Filebeat is picking them up and sends to Kibana.  
I can only see the temp data in this format, under message filed and i'm not able to create a Gauge

**t** message {"temperature\_data": { "timestamp":"11/19/2019 10:00:01 AM","cpu0":"64.0","cpu1":"64.0","cpu2":"58.0","cpu3":"75.0","vid0":"27.8

How do i create a separate index for temperature ?

Here is the confoguration in filebeat.yml

#-------------------------- Elasticsearch output ------------------------------  
output.elasticsearch:

# Array of hosts to connect to.

hosts: ["Localhost:9200"]

# Optional protocol and basic auth credentials.

#protocol: "https"  
#username: "elastic"  
#password: "changeme"  
#index: "filebeat-temp-%{+yyyy.MM.dd}"  
indices:

- index: "cputemp-%{+yyyy.MM.dd}"  
when.contains:  
message: "temperature\_data"
- index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"

---

<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:** [December 17, 2019, 6:32pm UTC](https://discuss.elastic.co/t/please-help-with-creating-new-index-for-filebeat/208561/2 "2019-12-17T18:32:08Z")

</div>

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