After you grow the bacteria in liquid media, centrifuge them and save the cell pellet and supernatant. Find a solvent in which your secondary metabolite is soluble, but is not miscible in water (Butanol, ethyl acetate, chloroform, or dichloromethane are good places to start). Then:
1. Add the solvent to the liquid culture at a 1:1 ratio and shake at room temperature for 1 hr.
2. Allow the mixture to separate into phases (you can centrifuge the sample to speed this up)
3. Collect the solvent and evaporate to a workable volume.
4. Analyse your sample by LC/MS or thin layer chromatography.
You will likely get a large range of metabolites in the crude extract, which you can separate with a column if necessary. You can also do an extraction on the cell pellet using the same method, though you can use methanol or another miscible solvent because you will not have a large amount of water in the cell pellet.