I think that this specimen is the larvae of one of the Mycetophilidae - fungus flies. They move within a mucus tube in a network of webs of transparent slime. They are frequently found beneath rotting logs and are invariably associated with fungus growing there.