As far as I know you are able to root on 4.3 without tripping Knox, so your warranty will not be voided. Maybe someone else can confirm this.
Well it matters what device, but it matters how you do it. Search Google for "your device name, root without unlocking boot loader". That means you won't be able to run custom ROM's but will hopefully be rooted.