You asked
Which autofocus lens for the sony a6400 works best at an indoor event?
For indoor events the a6400's lens matters more than the body. Indoors, light is the limit, and moving people need a shutter speed fast enough to freeze them. A lens with a wide maximum aperture, f/2.8 or faster, gives you that. The a6400 has no in-body stabilisation, so the OSS lenses below help with steadiness, but they don't freeze a moving subject the way a wide aperture does.
For a general event, the Sigma 18-50mm f/2.8 DC DN Contemporary is a strong pick. It's a fast standard zoom that covers about 27-75mm on full frame, which suits people speaking, dancing or mingling at close to medium range. The Tamron 28-75mm f/2.8 Di III VXD G2 reaches a little further, about 42-112mm equivalent, so you can shoot from across a room without changing lens.
If you want the best image quality and can spend more, the Sony FE 24-70mm f/2.8 GM II is the strongest all-round f/2.8 zoom on the a6400's list. It's wider on APS-C, roughly 36-105mm equivalent, so it's better for group shots and rooms where you can't step back.
For a stage or a speaker at the far end of a hall, the Sony FE 70-200mm f/2.8 GM OSS II is the reach choice. It's large and costly, and on APS-C it covers about 105-300mm equivalent. Pick it only if you need that distance.
Prices for these lenses aren't on the pages used for this answer, so check their pages for current figures. The camera itself is covered on the Sony a6400 page.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.