Question

How to know if I have "log4j"?

I just read about a severe security vulnerability in something called “log4j” from Apache. I have a LAMP droplet and I need to know how to find out if log4j is installed on the droplet? I don’t see a package by that name, but I’m not sure if I’m looking for the right thing.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 13, 2021
Pinned Answer
Accepted Answer

Hi all,

In addition to what has already been mentioned, I could suggest taking a look at this answer here:

What should I do to protect against CVE-2021-44228/Log4shell vulnerability with Apache Log4j?

Best, Bobby

alexdo
Site Moderator
Site Moderator badge
December 11, 2021

Hello, @JigsawBob

From what I can see Apache log4j 2 is an open-source Java-based logging framework that should not be installed by default on your Apache server, hence you’ve not manually installed/configured it then CVE-2021-44228 should not affect your server.

Regards, Alex

Hi JigsawBob, log4j is not installed as part of the standard LAMP stack. Unless you installed it yourself it is not on your server so you don’t need to do anything.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel