# Email Output plugin in logstash

**URL:** <https://discuss.elastic.co/t/email-output-plugin-in-logstash/223894>\
**Category:** Logstash\
**Created:** [March 17, 2020, 10:04am UTC](https://discuss.elastic.co/t/email-output-plugin-in-logstash/223894 "2020-03-17T10:04:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Mandal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_mandal/32/57073_2.png) [@Sagar\_Mandal](https://discuss.elastic.co/u/Sagar_Mandal)\
**Post date:** [March 17, 2020, 10:04am UTC](https://discuss.elastic.co/t/email-output-plugin-in-logstash/223894/1 "2020-03-17T10:04:33Z")

</div>

Hi Team,

I'm getting this error, in Email output plugin in logstash,

> [2020-03-17T01:31:33,099][**ERROR**][logstash.outputs.email][main] Something happen while delivering an email {:exception=\>#\<Net::SMTPAuthenticationError: 504 5.7.4 Unrecognized authentication type [[SG2PR06CA0218.apcprd06.prod.outlook.com](http://SG2PR06CA0218.apcprd06.prod.outlook.com)]

and I'm using this configuration attached below.

```
input

{

file

                {

                                path => "/etc/logstash/logstash1.csv"

                                start_position => "beginning"

                                sincedb_path => "/dev/null"

                }

}

filter

{

                csv

                {

                                separator => ","
                                skip_empty_columns => "true"
                                columns => ["Date","type","Particulars","VchType","VchNo","Debit","Credit"]
                }

                mutate {
     convert => ["Date", "string"]
     convert => ["type", "string"]
     convert => ["Particulars", "string"]
     convert => ["VchType", "string"]
     convert => ["VchNo", "string"]
     convert => ["Debit", "float"]
     convert => ["Credit", "float"]
 }

}

output

{
  file {
        path => "/var/log/logstash/email_test_new.txt"
       }
	email {
		
		to => 'atulya.sharma@ *****.com'
		codec => "plain"
		debug => 'true'
		#via => 'smtp'
		address => 'smtp.office365.com'
		username => 'sagar.mandal@ ****.com'
		password => ' **************'
		subject => 'test'
		body => 'test'
		port => 587
		use_tls => true
		authentication => 'plain'
		
       	}

stdout {}
	                
}

```

My configuration is making the file in the desired but the email is not working, Really need help on this guys.

Thanks and Regards,  
Sagar Mandal

---

<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:** [April 14, 2020, 10:04am UTC](https://discuss.elastic.co/t/email-output-plugin-in-logstash/223894/2 "2020-04-14T10:04:37Z")

</div>

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