# Extract data specific field and visualise in time (from logs)

**URL:** <https://discuss.elastic.co/t/extract-data-specific-field-and-visualise-in-time-from-logs/234512>\
**Category:** Kibana\
**Created:** [May 27, 2020, 9:57am UTC](https://discuss.elastic.co/t/extract-data-specific-field-and-visualise-in-time-from-logs/234512 "2020-05-27T09:57:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexandruRepede](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexandrurepede/32/69167_2.png) [@AlexandruRepede](https://discuss.elastic.co/u/AlexandruRepede)\
**Post date:** [May 27, 2020, 9:57am UTC](https://discuss.elastic.co/t/extract-data-specific-field-and-visualise-in-time-from-logs/234512/1 "2020-05-27T09:57:26Z")

</div>

i have some logfiles available in kibana and would like to extract values of a field and see them according to their timestamps

i have field called 'logger' that basically contains the java classes from which the log entry comes. e.g. 'com.mycompany.myproject.SomeClass', 'com.mycompany.myproject.SomeOtherClass'

i would like to visualize these loggers according to their timestamp. basically i would like to see what loggers are outputing in time

what kind of visualisation should i use? what settings? how do i extract the different values of a field (this might seem like a very basic question but i am new to kibana and my basic knowledge does not help me yet)

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 4, 2020, 10:59am UTC](https://discuss.elastic.co/t/extract-data-specific-field-and-visualise-in-time-from-logs/234512/2 "2020-06-04T10:59:16Z")

</div>

Hi @AlexandruRepede

To extract values from the fields there are two ways:

- at indexing time, depending on how you ingest data into ES, you can apply transformation and add as many transformation to your data as you need
- inside Kibana using Scripted Fields [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html) in your case you can create a new scripted field using regexp to extract the value you need

Related to the type of visualization: what do you want to understand from your data? how many logs comes from a specific Class/field extracted? or have a more global overview on how these logs are distributed between Class/fields extracted?

If you want to a clear overview of the trends over time you can use a line chart over time, and split the chart into multiple series by the scripted field created or split the series by the same field.  
If you want a more global overview and understand how the logs are distributed across your extracted field, you can use a histogram/barchart with stacked bars

---

<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:** [July 2, 2020, 10:59am UTC](https://discuss.elastic.co/t/extract-data-specific-field-and-visualise-in-time-from-logs/234512/3 "2020-07-02T10:59:21Z")

</div>

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