Perhaps because it is so simple, I have not seen a lagrangian form of the transport equation $$(\partial_t + a \partial_x)q = 0.$$ This equation is first order, which makes obtaining it from the Euler-Lagrange equation a bit tricky.
It would appear that the lagrangian $\frac{m}{2}q_{t}^2 + \frac{T}{2}q_{xt}$ yields $q_{tt} + \frac{T}{m}q_{xt}=0$, which in turn yields the transport equation with constant forcing $$q_t + \frac{T}{m}q_x + c =0$$ after integrating with respect to $t$ (the constant c comes from here).
Alternatively we might consider the lagrangian $q^2(q_{tt} + q_{xx}) + q(q_t^2 + q_x^2)$, which via the Euler-Lagrange equations yields
$$-q_t^2 - q_x^2 = 0 $$
which factors into the two transport equations describing motion in opposite directions.
Is there some classic approach or equation that I am missing?