You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[6][Set permissions in the file system](http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/SetPermissions#Set_permissions_in_the_filesystem)
[6][Set permissions in the file system](https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/SetPermissions#Set_permissions_in_the_filesystem)
47
44
48
45
## Installation
49
46
50
-
+Link the app to $SPLUNK_HOME/etc/apps/searchcommands_app by running this command:
47
+
+Bring up Dockerized Splunk with the app installed from the root of this repository via:
51
48
52
49
```
53
-
./setup.py link --scp-version {1|2}
50
+
SPLUNK_VERSION=latest docker compose up -d
54
51
```
55
52
56
-
+Or build a tarball to install on any Splunk instance by running this command:
53
+
+When the `splunk` service is healthy (`health: starting` -> `healthy`) login and run test searches within the app via http://localhost:8000/en-US/app/searchcommands_app/search
57
54
58
-
```
59
-
./setup.py build --scp-version {1|2}
60
-
```
55
+
### Example searches
61
56
62
-
The tarball is build as build/searchcommands_app-1.5.0-private.tar.gz.
63
-
64
-
+ Then (re)start Splunk so that the app is recognized.
57
+
#### countmatches
58
+
```
59
+
| inputlookup tweets | countmatches fieldname=word_count pattern="\\w+" text
60
+
```
61
+
Results:
62
+
text | word_count
63
+
:----|:---|
64
+
excellent review my friend loved it yours always guppyman @GGreeny62... http://t.co/fcvq7NDHxl | 14
65
+
Tú novia te ama mucho | 5
66
+
... |
65
67
66
-
## Dashboards and Searches
68
+
#### filter
69
+
```
70
+
| generatetext text="Hello world! How the heck are you?" count=6 \
text = RT @Habibies: When you were born, you cried and the world rejoiced. Live your life so that when you die, the world will cry and you will re... |
100
+
text = @dudaribeiro_13 q engraçado em. |
71
101
72
-
+ TODO: Describe saved searches.
102
+
#### sum
103
+
```
104
+
| inputlookup tweets
105
+
| countmatches fieldname=word_count pattern="\\w+" text
0 commit comments