Most of the VF pages in my company org use remote actions, so in debug log the operation is coming as VFRemoting. I need to open many log files to find out the Apex class that has the remote action method I am interested in. For ex, If I need to view the Sytem.debug value recorded using a remote action in controller A, I need to open a few log files and apply filter for Controller A. Is there a way available to search for a word in all the log files shown to me in the log section?

  • 1
    Take project in Eclipse and search in Eclipse it'll help you defiantly. – cloudZigZag Jun 5 '17 at 5:56
  • If there is no option available in developer console or some chrome addon, I will install Eclipse. We were a team of .Net developers recently moved to Salesforce and have never used Eclipse. – Saranya Jun 5 '17 at 6:01
  • 1
    Use this Chrome Extension "Salesforce advanced Code searcher" this might be helpfull – user44771 Jun 5 '17 at 12:40

It isn't currently possible (Summer '17) to use the native tooling to perform a search over the contents of all the log files.

You can do SOSL searches over the body of Apex classes and Triggers, but that isn't going to find you content in a Debug Log.

Searching over the Debug log content would require pulling the bytes of each log down and then searching them locally.

Update: I'd seen some posts recently about using the SFDX command line and GREP over the last N logs. It will still need to pull down the entire log(s).

sfdx force:apex:log:tail --color | grep USER_DEBUG 

See Streaming Debug Logs to your console

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.