3 Replies Latest reply on Feb 9, 2016 2:29 PM by Jeff Strauss

    tabcmd logging

    Jeff Strauss

      Prior to moving onto a new server cluster and upgrading to 8.3.1 / Windows 2012, all our tabcmd logs went to: C:\Users\<username>\AppData\Roaming\Tableau.  This still works if I am already logged in as the user, however when running from task scheduler, it does not seem to write here anymore, rather it writes to C:\Users\TEMP.CORP\AppData\Local\Tableau\Tabcmd and at the end of the task scheduler it deletes it.

       

      Any suggestions?  I'm thinking that a system environment variable is missing.  I also have a case open for this.

        • 1. Re: tabcmd logging
          Jeff Strauss

          Can I answer my own question?  I am thinking the logging issue is more so related to Windows 2012 R2 user profile. See the attached Microsoft article for more details and how to work around it.  And if you find a hotfix anywhere, let me know.

           

           

          http://support.microsoft.com/kb/2968540

          • 2. Re: tabcmd logging
            Jeffrey Lutomski

            Hi,

            A team member in the past was getting logs from a location like you pointed out in the first post.

            C:\Users\<username>\AppData\Roaming\Tableau.

            There would be a tabcmd.log in that folder.

             

            But later he created a "service account" to run certain scripts and perform certain tasks.

            And started to use task scheduler to run those scripts.

             

            Later when two other coworkers moved on, and I took over Tableau administration.

            I ran into the predicament of knowing what scripts were completed or the details of the failures.

            Something could "complete" and show as such in Task scheduler but it would not perform as expected and it would produce an error to screen or other but I was not there to see. For example during a backup script early in the AM.

             

            When looking at task scheduler in Windows 2008. We noticed it took arguments.

             

            Or that we could redirect what would be output to the console to a custom log file.

             

            This is starting to be more and more important as tabcmd and tabadmin log files grow and we have more custom scripts for different things.

             

            So we just created a folder for logs and funneled the output for whatever script  was being run to an appropriately named log file like the argument below:

             

            >c:\Logs\tableau_srvr.backup.log 2>&1

            • 3. Re: tabcmd logging
              Jeff Strauss

              we are doing the redirect of the log via the task scheduler command like just like you showed.  But it won't show the internals of what tabcmd is doing.  For this, you have to go look at the tabcmd.log file.