• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    C#
  • License
    MIT License
  • Created about 8 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Tableau log file analysis utility

LogShark

Community Supported

LogShark is a tool for analyzing and troubleshooting Tableau Server and Tableau Desktop. LogShark extracts data from log files and builds workbooks that can help you identify and understand error conditions, performance bottlenecks, and background activity. LogShark works by running a set of targeted plugins that pull specific data out of the log files, building data sources, and generating Tableau workbooks which can be used for analysis.

LogShark can help you:

  • Troubleshoot issues that are recorded in the logs.
  • Analyze system metrics from log data.
  • Solve problems in Tableau without exposing sensitive corporate information.
  • Validate Tableau Server application behavior against historical data when taking a new build or making a system change.

See the releases page for a full list of updates.

Sample Apache Workbook Screenshot

Getting Started

There are 3 ways you can use LogShark.

Self-Contained Application

Download and unzip the precompiled self-contained application from the following links:

Download LogShark for Win

Setup LogShark

Note that LogShark is configured by the LogSharkConfig.json file in the Config directory. If you are replacing an existing copy of LogShark, be mindful of any changes made to this configuration file.

Compile It Yourself

LogShark is a .NET Core 3.1 application. To compile it yourself:

  1. Make sure you have .NET Core 3.1 SDK installed
  2. Clone or download the repository
  3. Run the following command from the directory where LogShark.sln file is. Make sure to replace <insert_version> with the actual version, i.e. 4.2.1:

Windows

dotnet publish LogShark -c Release -r win-x64 /p:Version=<insert_version> --self-contained true 

Linux

dotnet publish LogShark -c Release -r linux-x64 /p:Version=<insert_version> --self-contained true 

Build and Run It Using Docker

Below are instructions on how to build and run LogShark using Docker on your own machine.

To build Docker image

  1. Install Docker Desktop (if you don’t have it already)
  2. Clone or download LogShark source code from this repository
  3. Build LogShark container image by running the following command from the directory where LogShark.sln file is
docker build -f LogShark/Dockerfile -t logshark .
  • Note the . at the end of the command - it is required
  • -t parameter specifies Docker image name and tag. Use whatever makes sense for your environment, or leave logshark there.

To process a log set

Use docker run command to run LogShark in a container. For example:

docker run -v ~/TestLogSets/logs_clean_tsm.zip:/app/logs.zip -v ~/TestLogSets/LogSharkDocker/Output:/app/Output -v ~/TestLogSets/LogSharkDocker/ProdConfig.json:/app/Config/LogSharkConfig.json logshark:latest logs.zip --plugins "Apache;Config" -p

Let’s break down this command part by part:

  • -v parameter maps a file or directory on local machine to a file/directly within container. This way LogShark in container can read files from the local machine (log set to process and config) and save output so it is available even after container is done and destroyed.
    • -v ~/TestLogSets/logs_clean_tsm.zip:/app/logs.zip maps ~/TestLogSets/logs_clean_tsm.zip file on host OS to /app/logs.zip file in container.
    • -v ~/TestLogSets/LogSharkDocker/Output:/app/Output maps Output directory of LogShark within container to a directory on host OS.
    • -v ~/TestLogSets/LogSharkDocker/ProdConfig.json:/app/Config/LogSharkConfig.json maps json config on host OS to a default LogShark configuration file within container (and hides the original file included with LogShark). This way there is no need to explicitly tell LogShark what config file to use.
  • logshark:latest this is the name/tag of the container image to use. If you used a different name/tag while building the Docker image, use it here.
  • logs.zip --plugins "Apache;Config" -p the rest of the line is passed to LogShark directly as arguments. See full list of available arguments here.
    • The first parameter is the name of the log set to process and it is required. It points to a file we mapped with the first -v statement

OS Compatibility

  • Above instructions are for macOS and Linux host OS running Linux containers.
  • Windows host OS running Linux containers: Same instructions apply, but path format is different for mapping local files and dirs when running the container. I.e. -v ~/TestLogSets/logs_clean_tsm.zip:/app/logs.zip becomes -v C:\tmp\logs_clean_tsm.zip:/app/logs.zip
  • Windows host OS running Windows containers: LogShark can run on Windows so this should be doable, but we do not use/test/support this scenario currently.

Analysis

The best way to analyze results is to run LogShark on your own logset and explore the generated workbooks via Tableau. Beyond what is included, you can configure LogShark to output your own custom workbooks. See the installation guide for more details on how to do this.

Support

LogShark is released as a Community-Supported tool. It is intended to be a self-service tool and includes this user guide. Any bugs discovered should be filed in the LogShark Git issue tracker.

Contributing

Code contributions & improvements by the community are welcomed and encouraged! See the LICENSE file for current open-source licensing & use information. Before we can accept pull requests from contributors, we do require a Contributor License Agreement. See http://tableau.github.io for more details.

More Repositories

1

TabPy

Execute Python code on the fly and display results in Tableau visualizations:
Python
1,558
star
2

webdataconnector

Bring the data you care about into Tableau
HTML
678
star
3

server-client-python

A Python library for the Tableau Server REST API
Python
656
star
4

rest-api-samples

Samples for the Tableau REST API
Python
379
star
5

document-api-python

Create and modify Tableau workbook and datasource files
Python
324
star
6

js-api-samples

Sample code for the Tableau JavaScript API
HTML
274
star
7

extensions-api

Extensions API sample code and developer docs.
JavaScript
268
star
8

VizAlerts

Data-driven alerting for Tableau Server
Python
209
star
9

tableau-log-viewer

Tableau Log Viewer is a cross-platform tool for quickly glancing over Tableau log files
C++
168
star
10

hyper-api-samples

Sample code to get started with the Hyper API.
Python
134
star
11

community-tableau-server-insights

Community-built data sources for answering questions about Tableau Server
Python
125
star
12

TabMigrate

A lightweight tool for moving Tableau content between multiple Tableau Server environments
C#
120
star
13

TabMon

A Tableau Server performance monitoring service
C#
109
star
14

connector-plugin-sdk

SDK for Developing Tableau Connector Plugins
Python
108
star
15

tabjolt

Load generator for Tableau Server
105
star
16

ts-checked-fsm

TypeScript library providing compile-time checking for state machine transitions
TypeScript
94
star
17

tableau-ui

React UI components that have the look-and-feel of Tableau.
CSS
92
star
18

query-graphs

A visualizer for queries - Hyper, Postgres, Tableau
TypeScript
88
star
19

server-install-script-samples

Sample code showing how to script Tableau Server installations
Python
83
star
20

altimeter

Graph AWS resources in Neptune
Python
82
star
21

metadata-api-samples

This repo holds samples using the Tableau Metadata API with Tableau Server or Tableau Online.
70
star
22

tableau-viz-lwc

(Archived) Lightning Web Component for embedding Tableau into Salesforce
65
star
23

embedding-playbook

You want to embed your Tableau content in lots of places. Start here.
CSS
57
star
24

tableau-server-in-kubernetes

Examples and documentation on how to run Tableau Server in a Container within a Kubernetes environment.
43
star
25

tabcmd

A Python based app that replicates the functionality of the existing TabCMD command line utility
Python
42
star
26

custom-portal-sample

Sample code showing how to integrate and embed Tableau in a web portal
HTML
39
star
27

webhooks-docs

Webhooks developer documentation and resources.
38
star
28

tableau-data-dictionary

This data dictionary provides information about the tables and views in the "workgroup" PostgreSQL database of the Tableau Server repository.
HTML
38
star
29

react-native-dns-lookup

A React Native module that leverages iOS and Android native networking libraries to lookup all of the IP addresses associated with a hostname
Objective-C
32
star
30

embedding-api-v3-samples

Samples for the Tableau Embedding API V3.
HTML
28
star
31

embedding-api-v3-guide

migration guide for moving to embedding api v3
28
star
32

mobile-app-bootstrap-react-native

A React Native template for creating iOS and Android apps that embed Tableau vizzes
JavaScript
26
star
33

mobile-app-bootstrap-cordova

A Cordova template for creating iOS apps that embed Tableau vizzes
JavaScript
22
star
34

tableau-docker-samples

Samples for Dockers for Tableau Server/Online clients
21
star
35

hyper-db

Documentation for Hyper, the blazingly fast SQL engine powering analytics at Tableau and Salesforce
TypeScript
19
star
36

npm-pack-here

An alternative to the Yarn link and NPM link workflows, this tool packs a local NPM project and puts the packed contents into the given destination directories.
TypeScript
19
star
37

extension-data-driven-parameters

Automatically update your parameters based on your data!
JavaScript
18
star
38

datadev-hackathon

Resources and materials for Tableau #DataDev hackathons.
17
star
39

redshift-monitor

Capture, save, and analyze AWS Redshift performance metrics
JavaScript
17
star
40

analytics-extensions-api

Extend Tableau to dynamically include popular data science programming languages and external tools and platforms.
HTML
17
star
41

teenypath

A filesystem wrapper
C++
16
star
42

tableau-postman

This repo is for the Tableau REST API Postman collection hosted in the Salesforce Developers Postman workspace. Use the collection to call your Tableau Server or Tableau Cloud site for demonstrations, learning, development & testing of any method in the API.
16
star
43

tableau-migration-sdk

An SDK for building your own application to migrate to a new Tableau environment.
C#
15
star
44

Visualization-Linting

Code associated with a research project for experimenting with different ways of surfacing stylistic, analytic, or visual discrepancies in visualizations.
JavaScript
14
star
45

mobile-app-bootstrap-objc

An Objective-C template for creating iOS apps that embed Tableau vizzes
Objective-C
13
star
46

TabProvision

TabProvision is a flexible tool for automating user/role/groups provisioning in Tableau Cloud
C#
12
star
47

octopus-python-client

Python script and a GUI to manage Octopus deploy servers through the Octopus Restful APIs
Python
12
star
48

tc16

Companion tool for attendees of Tableau Conference 2016
CSS
11
star
49

tab-compare

TabCompare is a visual comparison tool to understand differences in dashboards across different versions of Tableau.
Python
11
star
50

tableau.github.io

Contains the content for Tableau's OSS contribution guidelines
HTML
10
star
51

connected-apps-jwt-samples

Java
9
star
52

emb-hot-ca-v3

Embedded Hands-on-training course materials. Connected Apps and Embedding API v3
CSS
8
star
53

extension-date-updater

Automatically update your date parameters to today's date.
TypeScript
8
star
54

discover-pane-template

Template for customizing the Tableau Desktop Discover Pane
HTML
8
star
55

extension-hierarchy-navigator-sandboxed

Visualize your flat/dimensional or recursive data in a Tree/Hierarchy Extension an a Tableau Dashboard
JavaScript
8
star
56

mobile-connected-client

Keep mobile users signed in with long-lived tokens. Works alone or in conjunction with the Mobile App Bootstrap
Objective-C
8
star
57

extension-parameter-actions

A Tableau extension that allows you to update parameter values from worksheet selections.
JavaScript
7
star
58

tableau-data-acceleration-client

A script to help administrators configure data acceleration for specific workbooks.
Python
7
star
59

extension-filter-bookmarks

Instantly revert your dashboards to predefined filter settings.
JavaScript
6
star
60

wdc3

Web Data Connector (WDC), connecting to web application data from Tableau.
6
star
61

redux-saga-observer

a library that provides observer patterns to redux-sagas, allowing powerful abstractions
TypeScript
5
star
62

bridgectl

Tableau Bridge Utilities
5
star
63

extension-jungle-book

This extension allows you to create filters using shapes mapped on top of images.
TypeScript
5
star
64

vail

VAIL (Visual Analytic Intent Language) is a language for modeling user intent, inferring missing or ambiguous intent, and figuring out how to effectively visualize intent
TypeScript
4
star
65

wdclib

Used to generate the WDC shim library
JavaScript
4
star
66

Tableau-TA

4
star
67

gradle-test-timeout

Gradle plugin to turn hanging JUnit4 tests into TestTimedOutExceptions
Kotlin
4
star
68

extension-single-checkbox-parameters

Dashboard extension which enables adding a parameter to a Tableau dashboard which will display in the UI as a single checkbox.
JavaScript
3
star
69

tableau-viz-lwc-samples

(Archived) This repository contains sample code that shows how you can add the Tableau Viz Lightning web component (LWC) within the body of another Lightning web component.
JavaScript
3
star
70

connectivity-support

Provides a set of tools which can be used to diagnose common infrastructure concerns in the connectivity layer.
C++
3
star
71

VizQL-Data-Service-API-Postman-Collection

2
star
72

create-tableau-dashboard-extension

JavaScript
2
star
73

extension-quick-what-if

A dashboard extension that allows you to create a list of controllable inputs based on values of a dimension for quick what-if analysis.
JavaScript
2
star
74

bridge_k8s_poc

Shell
2
star
75

hyper-api-dotnet

C#
2
star
76

sf-exp-cloud-tableau-embedded-analytics

JavaScript
1
star
77

bridge_docker_build

Shell
1
star
78

Accelerators

This repository is used to share external prerequisites for dashboard accelerators that are published to exchange.tableau.com
1
star
79

container_image_builder

Use this tool to install database drivers and other artifacts needed in your Tableau containers.
Shell
1
star