I was recently up in my attic and found an old type of wiring I have never seen before. There are glass pieces the wires are threaded through and the wires look smaller then wires we use today. What type of wiring is this and is it safe?

You are looking at an old type of wire called knob and tube. I could be wrong but I don’t believe there are any regulations that say it must be replaced. Having said that I can say insurance companies do not like it as it is a higher risk for fire then our newer lumex...