로그 소스 관리
Panther API 로그 소스 관리 작업
마지막 업데이트
도움이 되었나요?
도움이 되었나요?
query ListSources {
sources(input: { cursor: "" }) {
edges {
node {
createdAtTime
createdBy {
... on User {
id
}
... on APIToken {
id
}
}
integrationId
integrationLabel
integrationType
isEditable
isHealthy
lastEventProcessedAtTime
lastEventReceivedAtTime
lastModified
logTypes
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}query GetSource {
source(id: "bcd45662-bab7-4f99-b69f-083a0212568d") {
createdAtTime
createdBy {
... on User {
id
}
... on APIToken {
id
}
}
integrationId
integrationLabel
integrationType
isEditable
isHealthy
lastEventProcessedAtTime
lastEventReceivedAtTime
lastModified
logTypes
}
}mutation DeleteSource {
deleteSource(input: { id: "bcd45662-bab7-4f99-b69f-083a0212568d" }) {
id
}
}mutation CreateS3LogSource {
createS3Source(
input: {
awsAccountId: "0123456789012"
label: "My Log Source"
logProcessingRole: "arn:aws:iam::0123456789012:role/PantherLogProcessingRole-somerole"
logStreamType: JSON
managedBucketNotifications: false
s3Bucket: "name-of-my-bucket"
s3PrefixLogTypes: [
{ excludedPrefixes: [], logTypes: ["AWS.ALB"], prefix: "" }
]
}
) {
logSource {
createdAtTime
integrationId
integrationLabel
integrationType
isEditable
isHealthy
lastEventProcessedAtTime
lastEventReceivedAtTime
lastModified
logTypes
}
}
}mutation UpdateS3LogSource {
updateS3Source(
input: {
id: "bcd45662-bab7-4f99-b69f-083a0212568d"
label: "My Log Source2"
kmsKey: ""
logProcessingRole: "arn:aws:iam::0123456789012:role/PantherLogProcessingRole-somerole"
logStreamType: JSON
managedBucketNotifications: false
s3PrefixLogTypes: [
{ excludedPrefixes: [], logTypes: ["AWS.ALB"], prefix: "" }
]
}
) {
logSource {
createdAtTime
integrationId
integrationLabel
integrationType
isEditable
isHealthy
lastEventProcessedAtTime
lastEventReceivedAtTime
lastModified
logTypes
}
}
}