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:

graphql
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[a]

ParameterTypeRequired[b]DefaultDescription
dynamicConfigKeyDynamicConfigyes The dynamic configuration key. See DynamicConfig.
dynamicConfigValuestringyes The dynamic configuration value.

[a] Table last updated: Sep 24, 2024

[b] 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
            }
            }
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
            }
            }"
}
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 @- << EOF
{"query" : "query{
            dynamicConfigs{
            dynamicConfigKey
            }
            }"
}
EOF
Windows Cmd and curl
shell
curl -v -X POST $YOUR_LOGSCALE_URL/graphql ^
    -H "Authorization: Bearer $TOKEN" ^
    -H "Content-Type: application/json" ^
    -d @'{"query" : "query{ ^
            dynamicConfigs{ ^
            dynamicConfigKey ^
            } ^
            }" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "query{
            dynamicConfigs{
            dynamicConfigKey
            }
            }"
}'
"$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
            }
            }"
}';
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
            }
            }"
}'''

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
            }
            }"
}
);


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 = https.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 (HTTP Response Code 200 OK)
json
{
            "data": {
            "dynamicConfigs": [
            {
            "dynamicConfigKey": "BlockSignup"
            },
            {
            "dynamicConfigKey": "DisableUserTracking"
            },
            {
            "dynamicConfigKey": "DisableAnalyticsJob"
            },
            {
            "dynamicConfigKey": "MaxAccessTokenTTL"
            },
            {
            "dynamicConfigKey": "RejectIngestOnParserExceedingFraction"
            },
            {
            "dynamicConfigKey": "QueryPartitionAutoBalance"
            },
            {
            "dynamicConfigKey": "QueryCoordinatorMaxHeapFraction"
            },
            {
            "dynamicConfigKey": "PruneCommunityLockedOrganizationsAfterHours"
            },
            {
            "dynamicConfigKey": "PruneMissingTOSAcceptanceOrganizationsAfterHours"
            },
            {
            "dynamicConfigKey": "DisableViewWithSameNameCleanup"
            },
            {
            "dynamicConfigKey": "MaxIngestRequestSize"
            },
            {
            "dynamicConfigKey": "JoinRowLimit"
            },
            {
            "dynamicConfigKey": "JoinDefaultLimit"
            },
            {
            "dynamicConfigKey": "SelfJoinLimit"
            },
            {
            "dynamicConfigKey": "StateRowLimit"
            },
            {
            "dynamicConfigKey": "QueryMemoryLimit"
            },
            {
            "dynamicConfigKey": "LiveQueryMemoryLimit"
            },
            {
            "dynamicConfigKey": "QueryCoordinatorMemoryLimit"
            },
            {
            "dynamicConfigKey": "GroupDefaultLimit"
            },
            {
            "dynamicConfigKey": "GroupMaxLimit"
            },
            {
            "dynamicConfigKey": "RdnsDefaultLimit"
            },
            {
            "dynamicConfigKey": "RdnsMaxLimit"
            },
            {
            "dynamicConfigKey": "QueryResultRowCountLimit"
            },
            {
            "dynamicConfigKey": "ParserThrottlingAllocationFactor"
            },
            {
            "dynamicConfigKey": "UndersizedMergingRetentionPercentage"
            },
            {
            "dynamicConfigKey": "StaticQueryFractionOfCores"
            },
            {
            "dynamicConfigKey": "TargetMaxRateForDatasource"
            },
            {
            "dynamicConfigKey": "DelayIngestResponseDueToIngestLagMaxFactor"
            },
            {
            "dynamicConfigKey": "DelayIngestResponseDueToIngestLagThreshold"
            },
            {
            "dynamicConfigKey": "DelayIngestResponseDueToIngestLagScale"
            },
            {
            "dynamicConfigKey": "SampleIntervalForDatasourceRates"
            },
            {
            "dynamicConfigKey": "FdrMaxNodesPerFeed"
            },
            {
            "dynamicConfigKey": "BucketStorageWriteVersion"
            },
            {
            "dynamicConfigKey": "BucketStorageKeySchemeVersion"
            },
            {
            "dynamicConfigKey": "BucketStorageUploadInfrequentThresholdDays"
            },
            {
            "dynamicConfigKey": "MinimumHumioVersion"
            },
            {
            "dynamicConfigKey": "DebugAuditRequestTrace"
            },
            {
            "dynamicConfigKey": "FlushSegmentsAndGlobalOnShutdown"
            },
            {
            "dynamicConfigKey": "GracePeriodBeforeDeletingDeadEphemeralHostsMs"
            },
            {
            "dynamicConfigKey": "FdrS3FileSizeMax"
            },
            {
            "dynamicConfigKey": "EnableDemoData"
            },
            {
            "dynamicConfigKey": "MaxNumberOfOrganizations"
            },
            {
            "dynamicConfigKey": "NumberOfDaysToRemoveStaleOrganizationsAfter"
            },
            {
            "dynamicConfigKey": "IsAutomaticUpdateCheckingAllowed"
            },
            {
            "dynamicConfigKey": "ExternalFunctionRequestResponseSizeLimitBytes"
            },
            {
            "dynamicConfigKey": "ExternalFunctionRequestResponseEventCountLimit"
            },
            {
            "dynamicConfigKey": "ReplaceANSIEscapeCodes"
            },
            {
            "dynamicConfigKey": "DisableInconsistencyDetectionJob"
            },
            {
            "dynamicConfigKey": "DeleteDuplicatedNameViewsAfterMerging"
            },
            {
            "dynamicConfigKey": "MaxQueryPenaltyCreditForBlockedQueriesFactor"
            },
            {
            "dynamicConfigKey": "MaxConcurrentQueriesOnWorker"
            },
            {
            "dynamicConfigKey": "MaxQueryPollsForWorker"
            },
            {
            "dynamicConfigKey": "MaxOpenSegmentsOnWorker"
            },
            {
            "dynamicConfigKey": "IngestFeedAwsProcessingDownloadBufferSize"
            },
            {
            "dynamicConfigKey": "IngestFeedAwsProcessingEventBufferSize"
            },
            {
            "dynamicConfigKey": "IngestFeedAwsProcessingEventsPerBatch"
            },
            {
            "dynamicConfigKey": "IngestFeedAwsDownloadMaxObjectSize"
            },
            {
            "dynamicConfigKey": "IngestFeedGovernorGainPerCore"
            },
            {
            "dynamicConfigKey": "IngestFeedGovernorCycleDuration"
            },
            {
            "dynamicConfigKey": "IngestFeedGovernorIngestDelayLow"
            },
            {
            "dynamicConfigKey": "IngestFeedGovernorIngestDelayHigh"
            },
            {
            "dynamicConfigKey": "IngestFeedGovernorRateOverride"
            },
            {
            "dynamicConfigKey": "IngestFeedMaxConcurrentPolls"
            },
            {
            "dynamicConfigKey": "MaxCsvFileUploadSizeBytes"
            },
            {
            "dynamicConfigKey": "MaxJsonFileUploadSizeBytes"
            },
            {
            "dynamicConfigKey": "MatchFilesMaxHeapFraction"
            },
            {
            "dynamicConfigKey": "LookupTableSyncAwaitSeconds"
            },
            {
            "dynamicConfigKey": "GraphQLSelectionSizeLimit"
            },
            {
            "dynamicConfigKey": "UnauthenticatedGraphQLSelectionSizeLimit"
            },
            {
            "dynamicConfigKey": "QueryBlockMillisOnHighIngestDelay"
            },
            {
            "dynamicConfigKey": "FileReplicationFactor"
            },
            {
            "dynamicConfigKey": "QueryBacktrackingLimit"
            }
            ]
            }
            }