If the pilot light on a gas fireplace is not staying on, it may need to be cleaned. This can easily be done with some simple tools and cleaning supplies. To clean the pilot light of a gas fireplace follow these instructions:
First turn off the power by turning off circuit breakers or removing fuses from your home’s fuse box so no electricity comes through. With this shut down you should have no problem getting close enough to work safely without being shocked from an accidently turned-on switch inside of an outlet somewhere in your house that was never meant to be turned off by just flipping a breaker switch. If you are unsure, then it would probably be best to call out for help from someone who knows how electric works around your home.
Then get a screwdriver and open up the small door on your gas fireplace that covers the pilot light area of your fireplace. Be sure to put some gloves on so you don’t burn yourself while cleaning out this section, because there will be ashes inside which can cause hot metal burns if touched without protection or caution. With it opened take off any decorative pieces around where the burner is to clean it better before putting everything back together. Then use wire brush to remove all ash residue from top of grate at bottom of fire box with no lava rock rocks underneath since they are porous and tend hold onto carbon monoxide fumes too much trapping them in system (which isn’t very safe for people who might sleep nearby). Make sure not use too much pressure, as you don’t want to scratch the metal of your fireplace or turn a small problem into a big one. When done put everything back together and then try turning on gas valve again to see if pilot light turns off now that it is clean.
If this does not work, then there could be bigger problems going on with fuel line, gas valve or other parts of flame ignition system. In this case you should call a professional to come and see what is wrong before trying anything else because there could be safety concerns with your particular fireplace model that mean it isn’t safe for anyone to work on without knowing all the different kinds of fireplaces out there and how each one might be different in its own unique way.