# Log management application

**URL:** <https://discuss.elastic.co/t/log-management-application/120634>\
**Category:** Elasticsearch\
**Created:** [February 20, 2018, 12:07pm UTC](https://discuss.elastic.co/t/log-management-application/120634 "2018-02-20T12:07:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sana](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sana](https://discuss.elastic.co/u/sana)\
**Post date:** [February 20, 2018, 12:07pm UTC](https://discuss.elastic.co/t/log-management-application/120634/1 "2018-02-20T12:07:06Z")

</div>

i have an index of logs collected using logstash, now i want to classify the fields, for example collect all the exception in the field "exception" and store them so i can use them later in my log management java application any advice on how to do that

---

<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:** [February 20, 2018, 11:25pm UTC](https://discuss.elastic.co/t/log-management-application/120634/2 "2018-02-20T23:25:02Z")

</div>

You can easily run an aggregation to find out what they are, but what do you mean by "collect these?"

---

<div class="post-metadata">

**Author:** ![sana](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@sana](https://discuss.elastic.co/u/sana)\
**Post date:** [February 21, 2018, 2:04pm UTC](https://discuss.elastic.co/t/log-management-application/120634/3 "2018-02-21T14:04:45Z")

</div>

i meant i already have all my logs in the elastic search such as this example:

{  
"\_index" : "logstash-2018.02.19",  
"\_type" : "doc",  
"\_id" : "daUerWEBZrue2cT4uG7q",  
"\_score" : 1.0,  
"\_source" : {  
"app" : "core",  
"threadname" : "[DiscoveryClient-CacheRefreshExecutor-0]",  
"exception" : "ConnectTimeout",  
"@version" : "1",  
"host" : "sana-OptiPlex-3020",  
"@timestamp" : "2018-02-19T08:12:04.836Z",  
"LEVEL" : "WARN",  
"type" : "syslog",  
"path" : "/home/sana/Bureau/core/dataAndTranslation-2018-01-17.0.log",  
"message" : "RetryableEurekaHttpClient: Request execution failed with message: org.apache.http.conn.ConnectTimeoutException: Connect to jhipster-registry:8761 timed out",  
"logtime" : "2018-01-17 17:54:37,400"  
}  
},

and i want throught A spring boot application to do a vertical split: send all the values that exception could have and save them in mongodb collection.  
so please how to do this aggregation using spring boot and elasticsearch

---

<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 21, 2018, 2:05pm UTC](https://discuss.elastic.co/t/log-management-application/120634/4 "2018-03-21T14:05:38Z")

</div>

Closed on March 21, 2018, 2:05pm UTC

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