I am trying to Install SYSLOG input plugin in Logstash which I installed in EC2 Ubuntu Linux but nto able to do this

Not sure what those instructions are, but regarding to Elastic tools always check the official documentation.

The logstash-input-syslog is bundled in Logstash, there is no need to install it as you can see in the documentation.

Plugins that are not bundled will have an Installation section in the beginning of their documentation.