You can use a single resistor, but you need to know the current that that the indicator draws at 12V. Once you know this, calculate the resistor that will drop 12V at that current (24-12), by Ohms low:
V = I R
R = V / I
For example, if the indicator is using 50ma (0.05A) then the resistor is:
R = 12 / 0.05 = 240 Ohms.
Then you have to calculate the power rating for the resistor.
P = V*V / R
And make sure you use a resistor with a power rating higher that that, at least double if you don't want it to get too hot.
Bob