This KB describes how traceoptions for IGMP snooping could be configured on L2NG platforms (EX/QFX/ACX/SRX).
user@device> show configuration protocols igmp-snooping | display set set protocols igmp-snooping v100 set protocols igmp-snooping traceoptions file igmp.log set protocols igmp-snooping traceoptions flag all
set protocols igmp-snooping vlan v100 traceoptions file igmp_snooping.log
set protocols igmp-snooping vlan all traceoptions file igmp_snooping_all_vlans.log
user@device# set protocols igmp-snooping ? Possible completions: + apply-groups Groups from which to inherit configuration data + apply-groups-except Don't inherit configuration data from these groups evpn-ssm-reports-only Accept and process only reports of SSM groups immediate-leave Enable immediate group leave on interfaces > interface Interface options for IGMP > proxy Enable proxy mode query-interval When to send host query messages (1..1024 seconds) query-last-member-interval When to send group query messages (seconds) query-response-interval How long to wait for a host query response (seconds) robust-count Expected packet loss on a subnet (2..10) version Set IGMP snooping version number (2..3) > vlan VLAN options [edit]