# Extract Common Name from incoming ssl connection and add field in LogStash

**URL:** https://discuss.elastic.co/t/extract-common-name-from-incoming-ssl-connection-and-add-field-in-logstash/183670
**Category:** Logstash
**Created:** [May 31, 2019, 7:11am UTC](https://discuss.elastic.co/t/extract-common-name-from-incoming-ssl-connection-and-add-field-in-logstash/183670 "2019-05-31T07:11:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![funduraghu](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@funduraghu](https://discuss.elastic.co/u/funduraghu)
#### Post date: [May 31, 2019, 7:11am UTC](https://discuss.elastic.co/t/extract-common-name-from-incoming-ssl-connection-and-add-field-in-logstash/183670/1 "2019-05-31T07:11:49Z")

</div>

I am using ssl connections from client (FileBeat/syslog-ng/other) to send logs to LogStash.  
I would like to extract the Common Name from the ssl connection to identify the client.  
How can I extract the required information?

I cannot rely on client inserting the Common Name in the log lines as some clients may not have the capability to modify the input logs.

---

<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: [June 28, 2019, 7:22am UTC](https://discuss.elastic.co/t/extract-common-name-from-incoming-ssl-connection-and-add-field-in-logstash/183670/2 "2019-06-28T07:22:52Z")

</div>

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