The dynamicConfigs() GraphQL query will return all of the dynamic configurations. It requires root access.

For more information on configuring all aspects of LogScale, see the Configuration Settings reference section.

Syntax

Below is the syntax for the dynamicConfigs() query field:

dynamicConfigs: [DynamicConfigKeyValueType!]!

Given Datatypes

For the given datatype, DynamicConfigKeyValueType, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: DynamicConfigKeyValueType

ParameterTypeRequired[a]DefaultDescription
dynamicConfigKeyDynamicConfigyes The dynamic configuration key (see DynamicConfig Table).
dynamicConfigValuestringyes The dynamic configuration value.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.


Example Queries

To obtain a list of all the current dynamic configuration settings:

Raw
graphql
query {
  dynamicConfigs {
    dynamicConfigKey,dynamicConfigValue
  }
}
Mac OS or Linux (curl)
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d @- << EOF
{"query" : "query {
  dynamicConfigs {
    dynamicConfigKey,dynamicConfigValue
  }
}"
}
EOF
Mac OS or Linux (curl) One-line
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql \
    -H "Authorization: Bearer $TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"query" : "query { dynamicConfigs { dynamicConfigKey,dynamicConfigValue } }" }'
Windows Cmd and curl
cmd
curl -v -X POST $YOUR_LOGSCALE_URL/graphql ^
    -H "Authorization: Bearer $TOKEN" ^
    -H "Content-Type: application/json" ^
    -d @'{"query" : "query { ^
  dynamicConfigs { ^
    dynamicConfigKey,dynamicConfigValue ^
  } ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "query {
  dynamicConfigs {
    dynamicConfigKey,dynamicConfigValue
  }
}"
}'
"$YOUR_LOGSCALE_URL/graphql"
Perl
perl
#!/usr/bin/perl

use HTTP::Request;
use LWP;
my $TOKEN = "TOKEN";
my $uri = '$YOUR_LOGSCALE_URL/graphql';
my $json = '{"query" : "query {
  dynamicConfigs {
    dynamicConfigKey,dynamicConfigValue
  }
}"
}';
my $req = HTTP::Request->new("POST", $uri );
$req->header("Authorization" => "Bearer $TOKEN");
$req->header("Content-Type" => "application/json");
$req->content( $json );
my $lwp = LWP::UserAgent->new;
my $result = $lwp->request( $req );
print $result->{"_content"},"\n";
Python
python
#! /usr/local/bin/python3

import requests

url = '$YOUR_LOGSCALE_URL/graphql'
mydata = r'''{"query" : "query {
  dynamicConfigs {
    dynamicConfigKey,dynamicConfigValue
  }
}"
}'''

resp = requests.post(url,
                     data = mydata,
                     headers = {
   "Authorization" : "Bearer $TOKEN",
   "Content-Type" : "application/json"
}
)

print(resp.text)
Node.js
javascript
const https = require('https');

const data = JSON.stringify(
    {"query" : "query {
  dynamicConfigs {
    dynamicConfigKey,dynamicConfigValue
  }
}"
}
);

const options = {
  hostname: '$YOUR_LOGSCALE_URL/graphql',
  path: '/graphql',
  port: 443,
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Content-Length': data.length,
    Authorization: 'BEARER ' + process.env.TOKEN,
    'User-Agent': 'Node',
  },
};

const req = http.request(options, (res) => {
  let data = '';
  console.log(`statusCode: ${res.statusCode}`);

  res.on('data', (d) => {
    data += d;
  });
  res.on('end', () => {
    console.log(JSON.parse(data).data);
  });
});

req.on('error', (error) => {
  console.error(error);
});

req.write(data);
req.end();
Example Responses
Success (200)
json
{
  "data": {
    "dynamicConfigs": [
      {
        "dynamicConfigKey": "BlockSignup",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "DisableUserTracking",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "DisableAnalyticsJob",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "MaxAccessTokenTTL",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "RejectIngestOnParserExceedingFraction",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "QueryPartitionAutoBalance",
        "dynamicConfigValue": "true"
      },
      {
        "dynamicConfigKey": "QueryCoordinatorMaxHeapFraction",
        "dynamicConfigValue": "0.5"
      },
      {
        "dynamicConfigKey": "PruneCommunityLockedOrganizationsAfterHours",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "PruneMissingTOSAcceptanceOrganizationsAfterHours",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "DisableViewWithSameNameCleanup",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "MaxIngestRequestSize",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "JoinRowLimit",
        "dynamicConfigValue": "200000"
      },
      {
        "dynamicConfigKey": "JoinDefaultLimit",
        "dynamicConfigValue": "100000"
      },
      {
        "dynamicConfigKey": "SelfJoinLimit",
        "dynamicConfigValue": "100000"
      },
      {
        "dynamicConfigKey": "StateRowLimit",
        "dynamicConfigValue": "20000"
      },
      {
        "dynamicConfigKey": "QueryMemoryLimit",
        "dynamicConfigValue": "100000000"
      },
      {
        "dynamicConfigKey": "LiveQueryMemoryLimit",
        "dynamicConfigValue": "100000000"
      },
      {
        "dynamicConfigKey": "QueryCoordinatorMemoryLimit",
        "dynamicConfigValue": "400000000"
      },
      {
        "dynamicConfigKey": "GroupDefaultLimit",
        "dynamicConfigValue": "20000"
      },
      {
        "dynamicConfigKey": "GroupMaxLimit",
        "dynamicConfigValue": "200000"
      },
      {
        "dynamicConfigKey": "QueryResultRowCountLimit",
        "dynamicConfigValue": "100000"
      },
      {
        "dynamicConfigKey": "ParserThrottlingAllocationFactor",
        "dynamicConfigValue": "1.0"
      },
      {
        "dynamicConfigKey": "UndersizedMergingRetentionPercentage",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "StaticQueryFractionOfCores",
        "dynamicConfigValue": "2.0"
      },
      {
        "dynamicConfigKey": "TargetMaxRateForDatasource",
        "dynamicConfigValue": "2000000"
      },
      {
        "dynamicConfigKey": "DelayIngestResponseDueToIngestLagMaxFactor",
        "dynamicConfigValue": "2"
      },
      {
        "dynamicConfigKey": "DelayIngestResponseDueToIngestLagThreshold",
        "dynamicConfigValue": "20000"
      },
      {
        "dynamicConfigKey": "DelayIngestResponseDueToIngestLagScale",
        "dynamicConfigValue": "300000"
      },
      {
        "dynamicConfigKey": "SampleIntervalForDatasourceRates",
        "dynamicConfigValue": "15000"
      },
      {
        "dynamicConfigKey": "FdrMaxNodesPerFeed",
        "dynamicConfigValue": "5"
      },
      {
        "dynamicConfigKey": "BucketStorageWriteVersion",
        "dynamicConfigValue": "3"
      },
      {
        "dynamicConfigKey": "BucketStorageKeySchemeVersion",
        "dynamicConfigValue": "2"
      },
      {
        "dynamicConfigKey": "BucketStorageUploadInfrequentThresholdDays",
        "dynamicConfigValue": "0"
      },
      {
        "dynamicConfigKey": "MinimumHumioVersion",
        "dynamicConfigValue": "0.0.0"
      },
      {
        "dynamicConfigKey": "DebugAuditRequestTrace",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "FlushSegmentsAndGlobalOnShutdown",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "GracePeriodBeforeDeletingDeadEphemeralHostsMs",
        "dynamicConfigValue": "7200000"
      },
      {
        "dynamicConfigKey": "FdrS3FileSizeMax",
        "dynamicConfigValue": "250000000"
      },
      {
        "dynamicConfigKey": "EnableDemoData",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "MaxNumberOfOrganizations",
        "dynamicConfigValue": "2750"
      },
      {
        "dynamicConfigKey": "NumberOfDaysToRemoveStaleOrganizationsAfter",
        "dynamicConfigValue": "180"
      },
      {
        "dynamicConfigKey": "IsAutomaticUpdateCheckingAllowed",
        "dynamicConfigValue": "true"
      },
      {
        "dynamicConfigKey": "ExternalFunctionRequestResponseSizeLimitBytes",
        "dynamicConfigValue": "10485760"
      },
      {
        "dynamicConfigKey": "ExternalFunctionRequestResponseEventCountLimit",
        "dynamicConfigValue": "10000"
      },
      {
        "dynamicConfigKey": "ReplaceANSIEscapeCodes",
        "dynamicConfigValue": "true"
      },
      {
        "dynamicConfigKey": "DisableInconsistencyDetectionJob",
        "dynamicConfigValue": "false"
      },
      {
        "dynamicConfigKey": "DeleteDuplicatedNameViewsAfterMerging",
        "dynamicConfigValue": "true"
      },
      {
        "dynamicConfigKey": "MaxQueryPenaltyCreditForBlockedQueriesFactor",
        "dynamicConfigValue": "1.0"
      },
      {
        "dynamicConfigKey": "MaxConcurrentQueriesOnWorker",
        "dynamicConfigValue": "1000"
      },
      {
        "dynamicConfigKey": "IngestFeedAwsProcessingDownloadBufferSize",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedAwsProcessingEventBufferSize",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedAwsProcessingEventsPerBatch",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedAwsDownloadMaxObjectSize",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedGovernorGainPerCore",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedGovernorCycleDuration",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedGovernorIngestDelayLow",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedGovernorIngestDelayHigh",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedGovernorRateOverride",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "IngestFeedMaxConcurrentPolls",
        "dynamicConfigValue": "None"
      },
      {
        "dynamicConfigKey": "MaxCsvFileUploadSizeBytes",
        "dynamicConfigValue": "209715200"
      },
      {
        "dynamicConfigKey": "MaxJsonFileUploadSizeBytes",
        "dynamicConfigValue": "104857600"
      },
      {
        "dynamicConfigKey": "MatchFilesMaxHeapFraction",
        "dynamicConfigValue": "0.5"
      },
      {
        "dynamicConfigKey": "LookupTableSyncAwaitSeconds",
        "dynamicConfigValue": "30"
      },
      {
        "dynamicConfigKey": "GraphQLSelectionSizeLimit",
        "dynamicConfigValue": "1000"
      },
      {
        "dynamicConfigKey": "UnauthenticatedGraphQLSelectionSizeLimit",
        "dynamicConfigValue": "150"
      },
      {
        "dynamicConfigKey": "QueryBlockMillisOnHighIngestDelay",
        "dynamicConfigValue": "300000"
      },
      {
        "dynamicConfigKey": "FileReplicationFactor",
        "dynamicConfigValue": "5"
      }
    ]
  }
}