You must enable NBAR on each interface from which you want to collect application statistics. The following example describes how to enable NBAR on an interface.
To enable NBAR on an interface:
Router> enable
Router# configure terminal
Router(config)# ip cef
Router(config)# interface FastEthernet 0/1
Router(config-if)# ip nbar protocol-discovery
Router(config-if)# exit