# Merge logs

**URL:** <https://discuss.elastic.co/t/merge-logs/82339>\
**Category:** Logstash\
**Created:** [April 13, 2017, 6:30pm UTC](https://discuss.elastic.co/t/merge-logs/82339 "2017-04-13T18:30:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amakarenkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amakarenkov/32/17364_2.png) [@amakarenkov](https://discuss.elastic.co/u/amakarenkov)\
**Post date:** [April 13, 2017, 6:30pm UTC](https://discuss.elastic.co/t/merge-logs/82339/1 "2017-04-13T18:30:42Z")

</div>

Hi there!

I have 2 different logs. One of them has this 2 keys: SrcIP and DstIP. Second has this 2 keys: SrcIP and Username.  
I want to merge this logs using SrcIP unique key so I will have SrcIP, DstIP, Username keys. Values of the keys could dynamically change over time (f.e. log who has line with "SrcIP=10.10.10.10 Username=Test1" can change to line with "SrcIP=10.10.10.10 Username=Test2" and so on).

Is there any solution for this?

---

<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:** [May 11, 2017, 6:35pm UTC](https://discuss.elastic.co/t/merge-logs/82339/2 "2017-05-11T18:35:34Z")

</div>

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