# Logstash metadata

**URL:** https://discuss.elastic.co/t/logstash-metadata/162632
**Category:** Logstash
**Created:** [January 2, 2019, 10:20am UTC](https://discuss.elastic.co/t/logstash-metadata/162632 "2019-01-02T10:20:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dinesh1](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@dinesh1](https://discuss.elastic.co/u/dinesh1)
#### Post date: [January 2, 2019, 10:20am UTC](https://discuss.elastic.co/t/logstash-metadata/162632/1 "2019-01-02T10:20:44Z")

</div>

Hi Team

Iam using ELK stack 5.6

My logstash configuration is shown below  
input {  
file {  
path =\> ["/var/logs/\*"]  
}  
}

output {  
elasticsearch {  
hosts =\> localhost  
index =\> "gr-%{+YYYY.MM.dd}"  
}  
stdout {  
codec =\> rubydebug {  
metadata =\> true  
}  
}  
}

**output is** \*\*  
{  
"\_index": "gr-2019.01.02",  
"\_type": "doc",  
"\_id": "udoGDmgBaXGgpZCyj\_eA",  
"\_version": 1,  
"\_score": null,  
"host": "centos3",  
"message": "Jan 2 03:26:12 localhost container\_ELA\_elasticsearch-server elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:59) ~[elasticsearch-5.6.3.jar:5.6.3]",  
"@version": "1",  
"@timestamp": "2019-01-02T10:05:36.967Z",  
"path": "/tmp/mito/logs/app.log"  
},  
"fields": {  
"@timestamp": [  
"2019-01-02T10:05:36.967Z"  
]  
},  
"sort": [  
1546423536967  
]  
}

My requirement to get ip address instead of host in above output.So please help me

---

<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: [January 30, 2019, 10:20am UTC](https://discuss.elastic.co/t/logstash-metadata/162632/2 "2019-01-30T10:20:45Z")

</div>

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