How to start logstash with log4j configuration

when i am trying to start logstash with log4j configuration i am getting error
my configuration:-
input {
log4j {
mode => "server"
host => "127.0.0.1"
port => 56445
type => "log4j"

}
}

output {
stdout {}
elasticsearch { embedded => true }

} .

Unless you tell us what error you're getting we can't help you. Knowing what version of Logstash you're using would also make things easier and avoid unnecessary speculation.

Also, don't use the embedded ES, you're much better off running up a standalone instance.