X-pack for Logstash

I have enabled the x-pack in my cluster.
Now I want to install Logstash on ingest node.
Enabling x-pack for Logstash is optional or compulsory?

What version are you running?

version 7.10.1

The functionality is optional, but recommended.