Slaesforce FAQ

how to capture network logs +salesforce

by Danika Fisher Published 2 years ago Updated 2 years ago
image

How to provide network capture logs to Salesforce Support In order to investigate your issues further, we would like to run an analysis of the traffic being sent between you and Salesforce. To do this, we will use the Wireshark application. Wireshark is a tool that allows packet traces to be monitored, captured and analysed.

Part of a video titled How to Capture HAR & Console Log Files | Salesforce
1:16
3:22
To setup our log recordings. We will click on the console tab within the developer tools window. AndMoreTo setup our log recordings. We will click on the console tab within the developer tools window. And ensure both the preserve log. And XML HTTP requests checkbox are selected.

Full Answer

How do I download my event log files from Salesforce?

To maximize the benefits of Event Monitoring, download your event log files from Salesforce so that you can track them over time. You can download event log files in several ways, including: Let’s look at each approach. Using the ELF Browser application is the most straightforward approach to downloading your organization’s Event Monitoring data.

Is there a way to track logouts in Salesforce?

Unfortunately, salesforce only tracks logins, not logouts. So you'd know when someone logs into the system, but when they leave or logout is anyones guess. There is an alternate solution though if your goal is to essentially track productivity, and it'll give you way more transparency as to what's going on in your org...

How to track time spent by a user in Salesforce?

You could then run a report on that "Time Tracking" object you made at the end of the day, week, month (whatever), grouped by user and time unit (day/week/month) that would give you an approximate amount of time that each user spent in Salesforce working. So those would be your various options -- some easier than others.

How does Salesforce Track Field history?

Salesforce starts tracking field history from the date and time that you enable it on a field. Changes made before this date and time aren’t included and didn’t create an entry in the History related list.

image

How do I collect network logs?

Chrome/EdgeIn Chrome, go to the page within Box where you are experiencing trouble.At the top-right of your browser window, click the Chrome menu (⋮).Select Tools > Developer Tools. ... Click the Network tab.Select Preserve log.You will see a red circle at the top left of the Network tab.More items...•

How do fiddlers capture traffic?

Create an HTTP sessionIn Fiddler, go to Tools > Fiddler Options > HTTPS.Select Capture HTTPS CONNECTs and Decrypt HTTPS traffic.Go to File > Capture Traffic or press F12 to turn off capturing. ... Go to File > Capture Traffic or press F12 to start capturing traffic again.More items...

Where can I find HAR logs?

Collect HAR/VAR Logs in ChromeOpen Google Chrome browser.Press F12 (Windows) or press Option+Command+I (Mac).Go to Network and make sure that the Preserve log checkbox is ticked.Select Console and make sure Preserve Log checkbox is ticked.Replicate the issue.More items...•

How do you analyze HAR logs?

Analyze HAR filesTo view the HAR file, use a tool such as Google's HAR Analyzer.Analyze the list of web requests captured in the HAR file. In particular, check the sequence of redirects to see how far you get in the authentication process. This helps identify where the issue is happening.

Can Wireshark capture all network traffic?

It might. It depends on exactly what your LAN cable connects to on the other end and if your network card (and drivers) can be set into promiscuous mode. If it's a port on a switch then you'll only see your own traffic, and broadcast traffic from the LAN. If it's a hub then you should see all LAN traffic.

Can Fiddler capture network traffic?

Yes. Supports traffic capturing on virtually any application that uses the system proxy.

How do you collect HAR trace?

Google ChromeOpen the Chrome DevTools. Select F12. Select Ctrl + Shift + I (Windows/Linux) or Command + Option + I (macOS) ... Select the Network Tab.Refresh the page (if needed) and reproduce the problem.Select the Export HAR... in the toolbar to export the trace as a "HAR" file.

How do I capture HAR file edge?

ResolutionOpen the Microsoft Edge browser.Press F12 to open the debug pane.Clear the session history before reproducing. ... Press the play button at the top left of the debug pane to start recording.Reproduce the issue.Press the red square to stop recording.More items...

Does HAR file contain console logs?

For solving browser-related issues, a technical support engineer may ask you to send console and HAR logs. Console and HAR logs contain information about the interaction between a browser and a website. Below you will find instructions on collecting console and HAR logs in most commonly used browsers.

What does a HAR file contain?

What is a HAR file? HAR is an abbreviation of 'HTTP Archive'. It is a file containing a log of trace information from within a browser session. It records web requests made by the browser to the website page including request and response headers, the body, and the time it takes to load the assets.

How do I compare two HAR files?

Or you can just copy/paste your HAR file into the start page of compare.sitespeed.io. If you host your sitespeed.io result pages, you can copy/paste the URL to a page or to a specific run and Compare will automagically find the URL to the HAR file.

What is the correct HAR syntax?

HAR Syntax: har then for using this archive for MapReduce input, all you need to specify the input directory as har:///user/zoo/foo.har. part files are the original files concatenated together with big files and index files are to look up for the small files in the big part file.

Download Event Log Files

You can use Developer Console to check your organization’s events and filter the events using criteria. But because you’re accessing the data through the application programming interface (API), you can also use other tools that make it easier to work with event log files.

Download Logs from Your Browser

Using the ELF Browser application is the most straightforward approach to downloading your organization’s Event Monitoring data. Let’s check it out.

Download Event Log Files Using cURL

We know that you’re excited about cracking your first case, but this victory is only the beginning of your illustrious career as a Salesforce admin/detective. Each event type also has a button that downloads a cURL script that you can run in your computer’s command line.

Download Event Log Files Using Python

If you need a more programmatic way of downloading your organization’s event log files, you can use Python scripts. One advantage of using a Python script over a cURL script is that it’s easier for Windows users to work with, but it’s also suitable for Mac and Linux users.

Visualize Event Log File Data

Now that you’ve taken the time to learn about event log files and how to download them from Salesforce, it’s time to talk about visualizing your data. Searching for a specific piece of information in thousands of rows in a spreadsheet is like searching for a needle in a haystack.

Collect a network trace with Fiddler

Fiddler is a powerful tool for collecting HTTP traces. Install it from telerik.com/fiddler, launch it, and then run your app and reproduce the issue. Fiddler is available for Windows, macOS, and Linux.

Collect a network trace in the browser (Browser-based apps only)

Most browser Developer Tools have a "Network" tab that allows you to capture network activity between the browser and the server.

How long after an event is a log file available?

However, daily log files are generated during nonpeak hours the day after an event takes place. Therefore, daily log file data is unavailable for at least one day after an event.

What is event monitoring log?

Event Monitoring log files aren’t a system of record for user activity. They are a source of truth, but aren’t durable. During Salesforce site switches, instance refreshes, or unplanned system outages, data loss can occur.

Why do you delete log files?

Deleting log files helps you comply with data protection and privacy regulations and controls the information that others can access. You can’t delete individual rows from event logs. Instead, you must delete the entire log file that contains the user activity. Query or View Hourly Event Log Files.

Can latent log files contain duplicate event data?

As a result, latent log files can sometimes contain duplicate event data. When your application consumes latent log files, make sure that your application handles duplicate event delivery. We recommend that you always query the EventLogFile object for new log files to ensure that you also include latent ones.

How long does Salesforce keep field history?

If your org was created on or after June 1, 2011 and you decide not to purchase the add-on, Salesforce retains your field history for the standard 18–24 months.

Can you turn off field history tracking?

You can enable field history tracking for standard objects in the object’s management settings. You can enable field history tracking for custom objects in the object’s management settings. You can turn off field history tracking from the object’s management settings.

Can Salesforce update the same tracker in the same second?

In other words, if two users update the same tracked field on the same record in the same second, both updates have the same timestamp. Salesforce can’t guarantee the commit order of these changes to the database. As a result, the display values can look out of order.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9