Summary

The meta() GraphQL query returns information about the LogScale instance. However, it has been deprecated and will be removed by version 1.304 of LogScale. Use instead clusterConfig() and its loginInfo field.

This query now requires authentication. To opt out of the authentication requirement, the feature flag UnauthenticatedMeta can be enabled with the enableFeature() mutation.

Syntax

graphql
meta(
      url: String
   ): HumioMetadata!

The optional url input specifies the URL of the LogScale instance. If omitted, the current instance URL is used. Returns a non-nullable HumioMetadata object. See the Returned Values section for available fields.

Example

Raw
graphql
query {
  meta(url: "https://logger.company.com") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}
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 {
  meta(url: \"https://logger.company.com\") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}"
}
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 {
  meta(url: \"https://logger.company.com\") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}"
}
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 { ^
  meta(url: \"https://logger.company.com\")  ^
     {version, organizationMode, ^
      authenticationMethod{ name },  ^
      sharedDashboardsEnabled,  ^
      environment,  isExternalManaged } ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "query {
  meta(url: \"https://logger.company.com\") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}"
}'
    "$YOUR_LOGSCALE_URL/graphql"
Perl
perl
#!/usr/bin/perl

use HTTP::Request;
use LWP;

my $TOKEN = "TOKEN";

my $uri = '$YOUR_LOGSCALE_URL/graphql';

my $query = "query {
  meta(url: \"https://logger.company.com\") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}";
$query =~ s/\n/ /g;
my $json = sprintf('{"query" : "%s"}',$query);
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 {
  meta(url: \"https://logger.company.com\") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}"
}'''

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 {
  meta(url: \"https://logger.company.com\") 
     {version, organizationMode,
      authenticationMethod{ name }, 
      sharedDashboardsEnabled, 
      environment,  isExternalManaged }
}"
}
);


const options = {
  hostname: '$YOUR_LOGSCALE_URL',
  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": {
    "meta": {
      "authenticationMethod": {
        "name": "SAMLAuthentication"
      },
      "sharedDashboardsEnabled": true,
      "organizationMode": "Single",
      "version": "1.161.0--build-2112--sha-ea4237e6b99165389c673adff40050178f1a697e",
      "isExternalManaged": false,
      "environment": "ON_PREM"
    }
  }
}

Returned Values

Returns a non-nullable HumioMetadata object with instance-level metadata. Key fields include version (the LogScale version string), clusterId, environment (EnvironmentType enum: ON_PREM, ON_CLOUD, or ON_COMMUNITY), authenticationMethod (an AuthenticationMethod interface object), organizationMode (OrganizationMode enum: Single, Multi, or MultiV2), isUsingSmtp, eulaUrl, and deleteBackupAfter (milliseconds before a deleted repository becomes unrestorable). The table below lists all fields:

Table: HumioMetadata Datatype

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
allowActionsNotUseProxyBooleanyes Long-Term  
authenticationMethodAuthenticationMethodyes Long-Term The authentication method used for the cluster node
awsIngestFeedsConfigurationStatusIngestFeedConfigurationStatusyes Long-Term Configuration status for AWS ingest feeds.
awsRegionsStringyes Long-Term List of supported AWS regions
clusterIdStringyes Long-Term  
deleteBackupAfterLongyes Long-Term The time in ms after which a repository has been marked for deletion it will no longer be restorable.
environmentEnvironmentTypeyes Long-Term  
eulaUrlStringyes Short-Term  
externalGroupSynchronizationBooleanyes Short-Term  
externalPermissionsBooleanyes Long-Term  
falconDataConnectorUrlString  Short-Term  
globalAllowListEmailActionsEnabledBooleanyes Long-Term  
ingestFeedAwsRoleArnString  Long-Term Cluster AWS IAM role arn (Amazon Resource Name) used to assume role for ingest feeds
ingestFeedConfigurationsIngestFeedConfigurationyes Long-Term Shows the current configuration for ingest feeds.
isApiExplorerEnabledBooleanyes Short-Term  
isAutomaticUpdateCheckingEnabledBooleanyes Long-Term  
isClusterBeingUpdatedBooleanyes Short-Term An indication whether or not the cluster is being updated. This is based off of differences in the cluster node versions.
isExternalManagedBooleanyes Short-Term  
isFeatureFlagEnabled(feature: FeatureFlag!)Booleanyes Short-Term Returns enabled features that are likely in beta.
isPendingUsersEnabledBooleanyes Short-Term  
isScheduledReportEnabledBooleanyes Short-Term  
isUsingSmtpBooleanyes Long-Term  
maxCsvFileUploadSizeBytesLongyes Short-Term  
maxJsonFileUploadSizeBytesLongyes Short-Term  
minimumNodeVersionStringyes Short-Term The lowest detected node version in the cluster.
organizationModeOrganizationModeyes Short-Term  
organizationMultiModeBooleanyes Short-Term  
personalUserTokensEnabledBooleanyes Short-Term  
regionsRegionSelectDatayes Long-Term  
sandboxesEnabledBooleanyes Short-Term  
scheduledSearchMaxBackfillLimitInt  Long-Term  
sharedDashboardsEnabledBooleanyes Short-Term  
versionStringyes Long-Term Â