<commit_before>package main

//go:generate make generate

import (
	"fmt"
	"math/rand"
	"net"
	"net/smtp"
	"os"
	"path"
	"runtime"
	"strings"
	"time"

	"github.com/Sirupsen/logrus"
	"github.com/gin-gonic/gin"
	"github.com/jordan-wright/email"
	"github.com/kolide/kolide-ose/app"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
	lumberjack "gopkg.in/natefinch/lumberjack.v2"
)

var (
	appName      = "kolide"
	versionMajor = 0
	versionMinor = 1
	versionPatch = 0
	version      = fmt.Sprintf("%d.%d.%d", versionMajor, versionMinor, versionPatch)
)

var (
	configFile string
)

// RootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
	Use:   "kolide",
	Short: "osquery management and orchestration",
	Long: `
osquery management and orchestration

Configurable Options:

Options may be supplied in a yaml configuration file or via environment
variables. You only need to define the configuration values for which you
wish to override the default value.

Available Configurations:

  mysql:
      address            (string)  (KOLIDE_MYSQL_ADDRESS)
      username           (string)  (KOLIDE_MYSQL_USERNAME)
      password           (string)  (K<PASSWORD>)
      database           (string)  (KOLIDE_MYSQL_DATABASE)
  server:
      address            (string)  (KOLIDE_SERVER_ADDRESS)
      cert               (string)  (KOLIDE_SERVER_CERT)
      key                (string)  (KOLIDE_SERVER_KEY)
  auth:
      jwt_key            (string)  (KOLIDE_AUTH_JWT_KEY)
      salt_key_size      (int)     (KOLIDE_AUTH_SALT_KEY_SIZE)
      bcrypt_cost        (int)     (KOLIDE_AUTH_BCRYPT_COST)
  app:
      web_address        (string)  (KOLIDE_APP_WEB_ADDRESS)
  smtp:
      server             (string)  (KOLIDE_SMTP_SERVER)
      username           (string)  (KOLIDE_SMTP_USERNAME)
      password           (string)  (KOLIDE_SMTP_PASSWORD)
      pool_connections   (int)     (KOLIDE_SMTP_POOL_CONNECTIONS)
      token_key_size     (int)     (KOLIDE_SMTP_TOKEN_KEY_SIZE)
  session:
      key_size           (int)     (KOLIDE_SESSION_KEY_SIZE)
      expiration_seconds (float64) (KOLIDE_SESSION_EXPIRATION_SECONDS)
  osquery:
      enroll_secret      (string)  (KOLIDE_OSQUERY_ENROLL_SECRET)
      node_key_size      (int)     (KOLIDE_OSQUERY_NODE_KEY_SIZE)
  logging:
      debug              (bool)    (KOLIDE_LOGGING_DEBUG)<commit_msg>Add osquery log file paths to list of env variables (#81)<commit_after>package main

//go:generate make generate

import (
	"fmt"
	"math/rand"
	"net"
	"net/smtp"
	"os"
	"path"
	"runtime"
	"strings"
	"time"

	"github.com/Sirupsen/logrus"
	"github.com/gin-gonic/gin"
	"github.com/jordan-wright/email"
	"github.com/kolide/kolide-ose/app"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
	lumberjack "gopkg.in/natefinch/lumberjack.v2"
)

var (
	appName      = "kolide"
	versionMajor = 0
	versionMinor = 1
	versionPatch = 0
	version      = fmt.Sprintf("%d.%d.%d", versionMajor, versionMinor, versionPatch)
)

var (
	configFile string
)

// RootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
	Use:   "kolide",
	Short: "osquery management and orchestration",
	Long: `
osquery management and orchestration

Configurable Options:

Options may be supplied in a yaml configuration file or via environment
variables. You only need to define the configuration values for which you
wish to override the default value.

Available Configurations:

  mysql:
      address            (string)  (KOLIDE_MYSQL_ADDRESS)
      username           (string)  (KOLIDE_MYSQL_USERNAME)
      password           (string)  (K<PASSWORD>)
      database           (string)  (KOLIDE_MYSQL_DATABASE)
  server:
      address            (string)  (KOLIDE_SERVER_ADDRESS)
      cert               (string)  (KOLIDE_SERVER_CERT)
      key                (string)  (KOLIDE_SERVER_KEY)
  auth:
      jwt_key            (string)  (KOLIDE_AUTH_JWT_KEY)
      salt_key_size      (int)     (KOLIDE_AUTH_SALT_KEY_SIZE)
      bcrypt_cost        (int)     (KOLIDE_AUTH_BCRYPT_COST)
  app:
      web_address        (string)  (KOLIDE_APP_WEB_ADDRESS)
  smtp:
      server             (string)  (KOLIDE_SMTP_SERVER)
      username           (string)  (KOLIDE_SMTP_USERNAME)
      password           (string)  (<PASSWORD>)
      pool_connections   (int)     (KOLIDE_SMTP_POOL_CONNECTIONS)
      token_key_size     (int)     (KOLIDE_SMTP_TOKEN_KEY_SIZE)
  session:
      key_size           (int)     (KOLIDE_SESSION_KEY_SIZE)
      expiration_seconds (float64) (KOLIDE_SESSION_EXPIRATION_SECONDS)
  osquery:
      enroll_secret      (string)  (KOLIDE_OSQUERY_ENROLL_SECRET)
      node_key_size      (int)     (KOLIDE_OSQUERY_NODE_KEY_SIZE)
      status_log_file    (string)  (KOLIDE_OSQUERY_STATUS_LOG_FILE)
      result_log_file    (string)  (KOLIDE_OSQUERY_RESULT_LOG_FILE)
  logging:
      debug              (bool)    (KOLIDE_LOGGING_DEBUG)
{'fraction_non_alphanumeric': 0.08634701340918326, 'fraction_numerical': 0.004469727752945957, 'mean_word_length': 2.784012298232129, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2292637', 'n_tokens_mistral': 1798, 'n_tokens_neox': 1762, 'n_words': 355}