API Stability Long-Term

A repository stores ingested data, configures parsers and data retention policies. The repository() GraphQL query is used to retrieve various information about a given repository.

For information on creating a repository, see the Creating a Repository or View documentation page. You may also want to look at the Manage Repositories & Views and Repositories documentation pages for related information.

Syntax

Below is the syntax for the repository() query field. You have to specify in parentheses, name and colon followed by the name the repository within quotes.

graphql
repository(
      name: string!,
      includeHidden: boolean
   ): Repository!

Below is an example of this:

Raw
graphql
query {
    repository(name: "humio", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}
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 {
    repository(name: \"humio\", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}"
}
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 {
    repository(name: \"humio\", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}"
}
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 { ^
    repository(name: \"humio\", includeHidden: false) ^
  {name, id, type, dataType, dashboards { ^
    id, name, displayName ^
  } } ^
}" ^
} '
Windows Powershell and curl
powershell
curl.exe -X POST 
    -H "Authorization: Bearer $TOKEN"
    -H "Content-Type: application/json"
    -d '{"query" : "query {
    repository(name: \"humio\", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}"
}'
    "$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 {
    repository(name: \"humio\", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}"
}';
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 {
    repository(name: \"humio\", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}"
}'''

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 {
    repository(name: \"humio\", includeHidden: false)
  {name, id, type, dataType, dashboards {
    id, name, displayName
  } }
}"
}
);


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": {
    "repository": {
      "id": "aK9GKAsTnMXfRxT8Fpecx3fX",
      "name": "humio",
      "dashboards": [
        {
          "id": "pKZuBbLOqlXonJBJrBnLAQAlele9e9tm",
          "name": "Parsers",
          "displayName": "Parsers"
        },
        {
          "id": "sVDzR6aL93MFnVtzyNJZmFR2vnqlnLgj",
          "name": "Request-Response",
          "displayName": "Request-Response"
        },
    ...
    }
  }
}

Returned Datatype

The returned datatype Repository has several parameters. Below is a list of them along with their datatypes and a description of each:

Table: Repository

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Aug 21, 2025
action(id: string): Actionmultipleyes Long-Term

A saved action.

The unique identifier of the action to get. Returns information on the action. See Action.

actions(actionIds: [string]): [Action]multipleyes Long-Term

A list of saved actions.

The result will only include actions for the specified identfiers. Omit to retrieve all actions. See Action.

aggregateAlert(id: string): AggregateAlertmultipleyes Long-Term

A saved aggregate alert.

The unique identifier of the aggregate alert. See AggregateAlert.

aggregateAlerts[AggregateAlert]yes Long-TermA list of saved aggregate alerts. See AggregateAlert.
alert(id: string): Alertmultipleyes Long-Term

A saved alert.

See Alert.

alerts[Alert]yes Long-TermSaved alerts. See Alert.
allowedViewActions[ViewAction]yes Long-TermReturns the all actions the user is allowed to perform on the view. See ViewAction.
archivingConfigurationArchivingConfiguration  PreviewAny archiving configuration. This is a preview parameter and is subject to change. See ArchivingConfiguration.
archivingProviderstring  PreviewThe archiving provider. This is a preview parameter and subject to change.
automaticSearchbooleanyes Long-TermWhether to search automatically.
availablePackages(filter: string, tags: [PackageTag], categories: [string]): [PackageRegistrySearchResultItem]multipleyes Long-Term

Returns a list of available packages that can be installed.

PackageTag is a scalar. See PackageRegistrySearchResultItem.

awsExternalIdstringyes Long-TermThe AWS External ID used when assuming roles in AWS on behalf of this repository.
cachePolicyCachePolicy  PreviewThe cache policy set on the repository. This is a preview and subject to change. See CachePolicy.
compressedByteSizelongyes Long-TermTotal size of data, measured as the size after compression.
compressedByteSizeOfMergedlongyes Long-TermTotal size of data, merged parts. Size is measured as the size after compression.
currentTagGroupings[TagGroupingRule]yes Long-TermTag grouping rules applied on the repository currently. Rules only apply to the tags they denote, and tags without rules do not have any grouping. See TagGroupingRule.
dashboard(id: string): Dashboardmultipleyes Long-Term

A saved dashboard.

See Dashboard.

dashboards[Dashboard]yes Long-TermAll dashboards available on the view. See Dashboard.
datasources[Datasource]yes Long-TermData sources from where data is ingested: specific log files or services sending data to LogScale. See Datasource.
dataTypeRepositoryDataTypeyes Long-TermRepository data types are used for controlling the types of data are allowed in the repository. See RepositoryDataType.
defaultQuerySavedQuery  Long-TermThe default saved query for the repository. See SavedQuery.
deletedDatelong  Long-TermThe point in time the search domain was marked for deletion.
descriptionstring  Long-TermA description of the repository.
effectiveCachePolicyCachePolicyyes PreviewThe effective cache policy that will apply to the repository, organization or global default, in order of precedence is: the repository cache policy, if set; the organization cache policy, if set; the global cache policy, if set; or the default cache policy in which no segments are prioritized. Cache policies are a limited feature and subject to change. See CachePolicy.
eventForwardersForSelection[EventForwarderForSelection]yes Long-TermList event forwarders in the organization with only basic information. See EventForwarderForSelection.
eventForwardingRules[EventForwardingRule]yes Long-TermThe event forwarding rules configured for the repository. See EventForwardingRule.
fdrFeed(id: string): FdrFeedmultipleyes Long-Term

The unique identifier of the FDR feed to get.

See FdrFeed.

fdrFeedControl(id: string): FdrFeedControlmultipleyes Long-Term

Administrator control for an FDR feed. Provide the identifier of the FDR feed the administrator is to control. The maxNodes is the maximum number of nodes with which to poll the FDR feed. This feature is a preview and is still being iterated; changes may occur.

See FdrFeedControl.

fdrFeedControls[FdrFeedControl]yes Long-TermAdministrator controls for FDR feeds. This feature is still being iterated; changes may occur. See FdrFeedControl.
fdrFeeds[FdrFeed]yes Long-TermSaved FDR feeds. See FdrFeed.
fileFieldSearch(fileName: string, fieldName: string, prefixFilter: string, valueFilters: [FileFieldFilterType], fieldsToInclude: [string], maxEntries: integer): [[DictionaryEntryType]]multipleyes Long-Term

Searching fields in a file.

See FileFieldFilterType and DictionaryEntryType.

files[File]yes Long-TermAny related files. See File.
filterAlert(id: string): FilterAlertmultipleyes Long-Term

A saved filter alert.

See FilterAlert.

filterAlerts[FilterAlert]yes Long-TermSaved filter alerts. See FilterAlert.
gcsArchivingConfigurationGCSArchivingConfiguration  PreviewGCS archiving configuration. This is a preview and subject to change. See GCSArchivingConfiguration.
groups[Group]yes Long-TermGroups with assigned roles. See Group.
hasPackageInstalled(packageId: VersionedPackageSpecifier): booleanmultipleyes Long-Term

Whether the repository has a given package installed.

VersionedPackageSpecifier is a scalar.

idstringyes Long-TermThe unique identifier of the repository.
ingestBlockdatetime  Long-TermThe date and time in the future after which ingest for this repository will be re-enabled.
ingestFeed(id: string): IngestFeedmultipleyes Long-Term

A saved Ingest feed.

See IngestFeed.

ingestFeeds(searchFilter: string, typeFilter: [IngestFeeds__Type], sortBy: IngestFeeds__SortBy, orderBy: OrderBy, skip: integer, limit: integer): IngestFeedQueryResultSetmultipleyes Long-Term

Saved Ingest feeds.

See IngestFeedQueryResultSet.

ingestListeners[IngestListener]yes Long-TermThe ingest listeners configured for this repository (see IngestListener Table).
ingestSizeBasedRetentionfloat  Long-TermRetention in gigabytes, based on the size of data when it arrives at LogScale, before parsing and compression. LogScale will keep at most this amount of data.
ingestTokens[IngestToken]yes Long-TermThe ingest token used for receiving data into the repository. See IngestToken.
installedPackages[PackageInstallation]yes Long-TermList packages installed on a specific view or repository. See PackageInstallation.
interactions[ViewInteraction]yes Long-TermAll interactions defined on the view. See ViewInteraction.
isActionAllowed(action: ViewAction): booleanmultipleyes Long-Term

Check if the current user is allowed to perform the given action on the view.

See ViewAction.

isStarredbooleanyes Long-TermWhether the repository is marked with a star.
limitLimitV2  Long-TermThis is the limit attached to the repository. See LimitV2.
maxAutoShardCountinteger  Long-TermThe maximum number of auto shards created.
nameRepoOrViewNameyes Long-TermThe name of the repository. RepoOrViewName is a scalar.
packageV2(packageId: VersionedPackageSpecifier): Package2multipleyes Long-Term

The returned package information for the specified package.

VersionedPackageSpecifier is a scalar. See Package2.

packageVersions(packageId: UnversionedPackageSpecifier): [RegistryPackageVersionInfo]multipleyes Long-Term

The available versions of a package.

UnversionedPackageSpecifier is a scalar. See RegistryPackageVersionInfo.

parser(parserid: string, name: string): Parsermultiple  Long-Term

The parser for the repository.

Give either the id or the name. See Parser.

parsers[Parser]yes Long-TermList of parsers used with the repository. See Parser.
permanentlyDeletedAtlong  Long-TermThe point in time the search domain will not be restorable.
recentQueriesV2[RecentQuery]yes Long-TermAny recent queries. See RecentQuery.
reposExcludedInSearchLimit[string]yes Long-TermRepositories not part of the search limitation.
resourcestring  Short-TermThe resource identifier for this search domain.
s3ArchivingArnstring  Short-TermThe ARN of the AWS IAM identity that will write to S3 for S3 archiving.
s3ArchivingConfigurationS3Configuration  Long-TermThe configuration for S3 archiving (e.g., bucket name and region). See S3Configuration.
savedQueries[SavedQuery]yes Long-TermSaved queries. See SavedQuery.
savedQuery(id: string): SavedQuerymultipleyes Long-Term

A saved query.

See SavedQuery.

scheduledReport(id: string): ScheduledReportmultipleyes Long-Term

Saved scheduled report.

See ScheduledReport.

scheduledReports[ScheduledReport]yes Long-TermSaved scheduled reports. See ScheduledReport.
scheduledSearch(id: string): ScheduledSearchmultipleyes Long-Term

A saved scheduled search.

See ScheduledSearch.

scheduledSearches[ScheduledSearch]yes Long-TermSaved scheduled searches. See ScheduledSearch.
searchLimitedMslong  Long-TermSearch limit in milliseconds, to which searches should are limited.
secretHandle(id: string): SecretHandlemultipleyes Preview

A saved secret handle.

See SecretHandle.

secretHandles(skip: integer, limit: integer): secretHandleQueryResultSetmultipleyes Preview

Saved secret handles.

See secretHandleQueryResultSet.

starredFields[string]yes Long-TermA list of fields which are marked with a star in the repository.
storageSizeBasedRetentionfloat  Long-TermRetention in gigabytes, based on the size of data when in storage, after parsing and compression. LogScale will keep at least this amount of data, but as close to this amount as possible.
tags[string]yes Long-TermAll tags from all datasources.
timeBasedBackupRetentionfloat  Long-TermSets time in days to keep back-ups before they are deleted.
timeBasedRetentionfloat  Long-TermThe maximum time in days to keep data. Older date will be deleted.
timeOfLatestIngestdatetime  Long-TermThe timestamp of the latest ingested data, or null if the repository is empty.
typeRepositoryTypeyes Long-TermRepository Types are used for tracking trial status in LogScale Cloud setups. See RepositoryType.
uncompressedByteSizelongyes Long-TermTotal size the data, measured as the size stored before compression and is thus the size of the internal format, not the data that was ingested.
uncompressedByteSizeOfMergedlongyes Long-TermTotal size the data, merged parts. Size is measured as the size stored before compression and is thus the size of the internal format, not the data that was ingested.
usageTagstring  Long-TermThe usage tag used to group usage summary on repositories.
users[User]yes Long-TermUsers who have access to the repository. See User.
usersAndGroups(search: string, skip: integer, limit: integer): UsersAndGroupsSearchResultSetmultipleyes Long-Term

Users or groups who have access to the repository.

See UsersAndGroupsSearchResultSet.

usersV2(search: string, permissionFilter: Permission, skip: integer, limit: integer): Usersmultipleyes Short-Term

Used to search for a user based on search parameters and for a given permission.

See Permission and Users.

viewerQueryPrefixstringyes Long-TermThe query prefix prepended to each search in this domain.