GithubHelp home page GithubHelp logo

bentleymi / chatgpt-4-splunk Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 5.0 39.16 MB

Splunk TA for sending completion requests to ChatGPT

License: Apache License 2.0

Python 97.65% JavaScript 0.27% CSS 0.03% Cython 1.07% C 0.81% Shell 0.02% Roff 0.15%
chatgpt-api splunk splunk-addon

chatgpt-4-splunk's People

Contributors

bentleymi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chatgpt-4-splunk's Issues

Remove unused libraries

Added cryptography and pcrypt but didnt use them

Need to pip uninstall --target=... cryptography pcrypt

No such organization or key

Name of the app
ChatGPT 4 Splunk

Describe the bug
After having added the organization name and value and the API key and value, I am unable to perform a search using the openai command successfully.

To Reproduce
Steps to reproduce the behavior:

  1. Install the plugin on Splunk.
  2. In the "setup" page for the plugin
  • enter the Organization Name in the "Enter Organization Name" field.
    ConductixWampfler
  • enter the Organization Value in the "Enter Organization Value" field.
    org-blahblahblah
  • enter the API Key Name in the "Enter API Key Name" field.
    CXW-Splunk
  • enter the API Key Value in the "Enter API Key Value" field.
    sk-blahbalahasdlfkjasdf
  1. Click on "Complete Setup"
  2. From the "New Search" page/tab, add the following:
    host=namehere source!="Perfmon*" NOT "JIRA-STATS" sourcetype!="atlassian-jira-gc" | openai prompt="Given these logs, why did Jira stop responding?" model="gpt-3.5-turbo"
  3. Limit the search to 15 minutes or some other small window.
  4. Click on the magnifying glass icon.
  5. Receive the following error (verbatim):
    command="openai", No such organization: org-ABCDEFG12345.

Expected behavior
I would expect:

  1. the error display my accurate org key
  2. To return results from OpenAI.

Screenshots
image

Splunk SOAR Version (please complete the following information):

  • Unprivileged Install?
  • running on a VM using Windows Server 2019 Datacenter, version 1809, OS build 17763.3770
  • App Version: Splunk Enterprise 9.0.5 Build: e9494146ae5c

Not ChatGPT but earlier APIs

Currently ChatGPT is not available by API. I originally thought the API was just earlier versions of the same thing but apparently ChatGPT is a specific version of the AI models that are not available via API. Therefore, in the next release we'll be renaming the app to TA-OpenAI-API and changing the command name to be '|openai' instead.

Feature Request: Add Multiple ChatGPT Instances/Accounts/API

Use Case:

We allow multiple employees use ChatGPT at work, but they must use their work email account for their account.

It would be nice to add all of the users API information to Splunk so it would be easy to monitor what they are inputting to ensure PII or PHI information isn't being entering into OpenAPI Cloud Infrastructure.

Issue with using special characters on the prompts

Hi,

Thanks so much for this very useful application!

I have a situation, I have created a prompt that will ask the user to post the source code of a program written in Python, but when I put in the code, the system crashes as it is trying to integrate the code into the actual Simple XML code. I have enclosed the variable in quotes, used the encapsulation so it does not use the characters as Simple XML prompts, but still I having problems.

Here's an example of what I am trying to accomplish:

| openai prompt="Act as a Programmer with 10 years of experience writing code in Python and reviewing the code for bugs. I need you to review this code '$code.tok$' and see where the bugs are. Your output will be the analysis of the code and you will re-write it with your recommendations resolving the bugs found. Make sure you include a detailed analysis of your finding to the user learn for future projects."

So, the variable (token) will contain the actual source code in Python, but the prompt will see it as part of the Simple XML code and won't process it.

Any recommendation on how can I encapsulate the token, so it is treated as the text to be analyzed and does not break the program?

Your assistance is greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.