Skip to content

Commit

Permalink
Merge pull request #174 from droonee/droonee-patch-1
Browse files Browse the repository at this point in the history
Drooney patch 1 - Data volume log searches/tools
  • Loading branch information
wjakelee authored Oct 3, 2024
2 parents 5e91849 + 2334fc9 commit bacb6c0
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "SavedSearchWithScheduleSyncDefinition",
"name": "30d time compare of top 20 source categories",
"search": {
"queryText": "_index=sumologic_volume _sourceCategory = \"sourcecategory_and_tier_volume\"\n| parse regex \"(?<data>\\{[^\\{]+\\})\" multi\n| json field=data \"field\",\"dataTier\",\"sizeInBytes\",\"count\" as sourcecategory, dataTier, bytes, count\n| where dataTier matches \"*\"\n| bytes/1024/1024 as mbytes \n| sum(mbytes) as mbytes by sourceCategory\n| round(mbytes,2) as mbytes\n| ((queryEndTime() - queryStartTime())/(1000*60*60*24)) as duration_in_day\n| mbytes / duration_in_day as %\"MB/Day\"\n| round(%\"MB/Day\",2) as %\"MB/Day\"\n| top 20 sourceCategory by mbytes, %\"MB/Day\"\n| compare with timeshift 30d 1\n| mbytes / mbytes_30d as ratio\n| where ratio > 1",
"byReceiptTime": false,
"viewName": "",
"viewStartTime": "1970-01-01T00:00:00Z",
"queryParameters": [],
"parsingMode": "AutoParse",
"defaultTimeRange": "Last 3 Days"
},
"searchSchedule": null,
"description": ""
}
5 changes: 5 additions & 0 deletions Sumo-Logic-Tools/Data Volume/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Sumo Logic Data Volume Tools
Sumo Logic Community Content for Data Volume visibility and monitoring. The compilation of searches assists the user in understanding changes in data volume from source categories, over time and at a point in time.

### To use the content:
- Download the log searches and import them into your environment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "SavedSearchWithScheduleSyncDefinition",
"name": "Method to find source categories that cross over partitions",
"search": {
"queryText": "// Run and export results of this query twice for tiers that you want to compare\n// Export both search results into an excel spreadsheet to find source categories from both lists\n_index=sumologic_volume _sourceCategory = \"sourcecategory_and_tier_volume\"\n| parse regex \"(?<data>\\{[^\\{]+\\})\" multi\n| json field=data \"field\",\"dataTier\",\"sizeInBytes\",\"count\" as sourcecategory, dataTier, bytes, count\n| where dataTier matches \"*\" // Continuous, Frequent, Infrequent\n| bytes/1024/1024 as mbytes \n| sum(mbytes) as mbytes by sourceCategory\n| round(mbytes,2) as mbytes\n| ((queryEndTime() - queryStartTime())/(1000*60*60*24)) as duration_in_day\n| mbytes / duration_in_day as %\"MB/Day\"\n| fields - duration_in_day\n| where %\"MB/Day\" > 1\n| sort by %\"MB/Day\" desc",
"byReceiptTime": false,
"viewName": "",
"viewStartTime": "1970-01-01T00:00:00Z",
"queryParameters": [],
"parsingMode": "AutoParse",
"defaultTimeRange": "Last 7 Days"
},
"searchSchedule": null,
"description": ""
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "SavedSearchWithScheduleSyncDefinition",
"name": "Top 20 SourceCat Over Time",
"search": {
"queryText": "_index=sumologic_volume _sourceCategory = \"sourcecategory_and_tier_volume\"\n| parse regex \"(?<data>\\{[^\\{]+\\})\" multi\n| json field=data \"field\",\"dataTier\",\"sizeInBytes\",\"count\" as sourcecategory, dataTier, bytes, count\n//| where dataTier matches \"Continuous\"\n| where [subquery: _index=sumologic_volume _sourceCategory = \"sourcecategory_and_tier_volume\"\n | parse regex \"(?<data>\\{[^\\{]+\\})\" multi\n | json field=data \"field\",\"dataTier\",\"sizeInBytes\",\"count\" as sourcecategory, dataTier, bytes, count \n | where !(sourcecategory matches \"*_and_*_volume\")\n | bytes/1Gi as gbytes \n | sum(gbytes) as gbytes by sourceCategory\n | sort by gbytes\n | limit 20\n | compose sourcecategory\n ]\n| bytes/1Gi as gbytes \n| timeslice 1d\n| sum(gbytes) as ingest by _timeslice, sourcecategory\n| transpose row _timeslice column sourcecategory",
"byReceiptTime": false,
"viewName": "",
"viewStartTime": "1970-01-01T00:00:00Z",
"queryParameters": [],
"parsingMode": "AutoParse",
"defaultTimeRange": "Last 14 Days"
},
"searchSchedule": null,
"description": ""
}

0 comments on commit bacb6c0

Please sign in to comment.